Determining how much time is left for HttpSession expiration

Hi,
Is there any way to determine how much time is left for my session to expire ? What i want to do is, if there is no activity on some page for a long time, then according to the remaining session expiration time, i want to popup a message to the user that 'so much' time is left for his session to expire. If the user wish we can reset the session expired time to its initial value and the session continues.

Well, see, how are you going to do this even if there was a method (which there is sorta... you need to use getMaxInactiveInterval() and getLastAccessedTime() from session to figure it out yourself). What I mean is, how are you going to tell the user. The JSP can't call the browser to tell it anything, and when the user goes to another page, the timer is reset, so it'll never be below that limit after that request.
Actually, I can think of only one way, and that is to have a JavaScript code on the page and use setTimeout function to show an alert after the needed time expires.

Similar Messages

  • HT1807 In a foreign country you buy a card for air time, on the iphone how do you know how much time is left.

    In a foreign country Panama, you buy air time so much at a time with a time card.  How do you tell how much time is left on the iphone?

    Depends on the carrier you are using the card with, They will have special # codes or a number to call

  • MacBook Warranty - How much time is left

    Is there some place where I can track how much time is left on my warranty? When I initially bought the Mac, I know I had 90 days telephone service and a warranty on the macbook itself for one year. I think I have some in store assistance as well. Where can I find this location and is there a place where I can see how much time is remaining on my warranty (I can't remember when I purchased my macbook). Thank you.

    Here ya go:
    https://selfsolve.apple.com/GetWarranty.do
    Just put your serial number in and it should answer your question.

  • I bought a mac book pro and apple promised upgradation to lion aosx but yet nothing rcvd , want to ask how much time it takes for them to send me the code to download it (now its more than a week i purchased this mac)

    i bought a mac book pro and apple promised upgradation to lion aosx but yet nothing rcvd , want to ask how much time it takes for them to send me the code to download it (now its more than a week i purchased this mac)

    http://www.apple.com/macosx/uptodate/

  • Is there a way to see how much time's left to render?

    I was wonder if Final cut pro x have the ability to show how much time is remaining in the rendering process...like premiere or final cut 7 use to, if I remember correctly...Same thing with Compressor 4.1.3

    The big problem with estimating time remaining is the app cannot see into the future on the timeline. there might be a very complicated section coming up that requires rendering effects, graphics, or complicated Motion files but only after lots of heavy duty decompression or transcoding.
    After using FCP for many years we sort of got a feeling for how much horsepower and time were going to sucked up with any given project or settings but today's monster CPUs and graphics cards have required me to rethink all of that previous experience.

  • How do I determine how much space is left in different content areas?

    I don't know if anyone can help, but I am trying to determine
    how much space has been used up in various content areas of our
    Intranet.
    The first content area has been limited to 700 Mb. The used
    space is showing as -28.152 MB (-4%).
    The second content area has been limited to 225 Mb. The used
    space is showing up as 27.844 MB (12.4%).
    Please could you explain the difference between numbers with a
    minus sign in front of them, and those that have no minus sign.
    I am confused as to whether we are over the quota of documents
    added to either of the areas, although we have had no reports of
    users not being able to load documents.
    Thanks very much
    Kate

    Hi Jerry
    Thanks for getting back to me.
    The database we are on is 8.1.6.3 and we are running Portal
    version 3.0.8.9.8.
    All of the documents that are loaded on to our Intranet have
    been loaded via the standard content management tools which are
    part of portal.
    Is there anything we can do to rectify this problem?
    Thanks very much
    Kate

  • When watching a movie how do I see how much time is left?

    Hi,
    I was watching a movie in bed last night and was guessing where the buttons were. At one point I saw how long the movie was and how much time I had left with a blue bar showing the progress. I have no idea how I did this, so what do you push to get this info while viewing something?
    S.

    Vair Trippant,
    Thanks, I just tried it but it took a few times and then it was cool it cycled through all these different things like brightness control etc.
    S.

  • How much time it takes for a job status to get updated in to TBTCO table?

    Hi all,
    We have a program that fetches the Job count and job name from a third party tool(UC4) and then searches for the status of the job in the TBTCO table.
    In some rare cases we found that the TBTCO table had not updated with the Job details when the call was made to it.
    Do we have any SAP scheduler settings which determines after a particular time the status gets refreshed in the TBTCO table once the job is triggered?

    hi may be checking Sy-subrc and using wait for X seconds should be a convenient way to code.
    I doubt if there is any schedule to update the table..

  • How can I determine how much time I'm actually getting from 1 charge?

    Lol, I know this question may sound dumb (and I'm pretty sure I'm not )
    ....but I couldn't think of any other way to word it. I know that the battery meter displays the projected remaining time, but that is constantly fluctuation, and it's not what I'm looking for. I'm wondering if there's some sort of application that can take record or notes of x time I'm getting from x battery. Perhaps a way to track the average usage per charge or something like that? Anyone know of any?
    Message was edited by: DirtyKetchup

    As far as I remember it's not possible. Thus, find attached VI and use it to convert line/column to excel cell format. It's working if you are not using more than 26 columns (i.e. column AA, AB, ... if this is the case you have to improve it a little)
    Hope this helps
    Attachments:
    To_Cell_Format.vi ‏18 KB

  • When downloading an app how can i tell how much time is left

    I want to know how I can tell how far along the download is

    You can guess by how far along the little circle is.
    Or you can try out a utility app that tracks your downloads for you. 
    In the App Store search under utilities

  • HT201299 How can I determine how much data is left on my iPad?

    I would like to access info on my iPad showing current data usage and remaining data usage.  Where do I find that info?

    Depends on what you mena by data usage. If you are referring to the amount of storage space left you can go Settings->General->Usage
    If you mean Cellular Data Plan usage, you can go to
    Settings->Cellular Data->Account should have that information.

  • How can I display the time left on my kids time limits? Whenever we ask them how much time is left, they cannot answer until the last 15 minutes are left.

    iMac, current operating system

    thanks for the quick response...
    no simple solution because no backup to restore from
    iPhoto seems to be using file metadata as some sort of index key in the
    Photo Info Window. open up the iphoto library package and take a look at
    the .xml file -- ModDate is used everywhere. hoping to export this data and merge/join it to
    each image.
    still trying to figure it out.
    thanks,
    Tom

  • Ctios failover. how much time spent to to recover the ctios agent

    on cce 7.5.x    
    using  /load 0  to put agent on not ready after ctios failover. how much time is needed for agent to do a ready request?.
    or using /load 1 (i think is the default behavior) this cause to log out agent. soo How much time must left to do a log in again.
    any ideas?

    This is what SRND Guide of 7.5 says
    When the active CTI Manager Service or PG software fails, the PG JTAPI Gateway/PIM detects an OUT_OF_SERVICE event and induces a failover to the redundant (duplex) PG. Because the redundant PG is logged into the backup Unified CM subscriber CTI Manager Service already, it registers the IP phones and configured dialed numbers or CTI route points automatically. This initialization service takes place at a rate of about 5 devices per second. The agent desktops show them as being logged out or not ready, and a message displays stating that their routing client or peripheral (Unified CM) has gone off-line. (This warning can be turned on or off, depending on the administrator's preference.) All agents and supervisors lose their desktop third-party call control functionality until the failure recovery is complete. The agents and supervisors can recognize this event because call control action buttons on the desktop will gray out, and they will not be able to do anything with the desktop. Any existing calls should remain active without any impact to the caller.
    Regards

  • How much time will take applyning SP11 level in ECC6.0

    Hi,
    How much time will take for appying SP11 level in ECC6.0.
    Regards,
    venkat reddy.

    hi,
    Make sure , that you increase the shared memory being utilized by database .
    In oracle we increase the SHARED POOLSIZE , that will reduce the time in ACT_700 .
    There is note which talks about the SHARED_POOL_SIZE , it should be minimum 500 mb , depending upon your total physical RAM and CPU.
    Thanks
    Prasanna

  • I need help getting my ipod to show me how much time left on a song !

           How can i get my ipod to show me how much time left on a song @ the top under the song that's playing it went away and i dnt know how to put it bck please help me out  . . .

    No, tap the screen briefly. If you hold your finger on the Now Playing screen - even for one second - the scrubber bar (with the time on it) will not appear.
    Tap - the quickest touch you can do.

Maybe you are looking for

  • New Mac Pro - how do I install OSX on old drive?

    Hi, I have just received my new Mac Pro and tried to install OSX from the enclosed discs on my Raptor. Only trouble is is says I can't, I tried on my 500GB Maxtor and it wouldn't put it on their either! Any ideas? Thanks B

  • Since no replies or help in XML Gateway forum, re-posting it here

    Problem with XML Gateway consuming a map with a DTD

  • Upgrade T400 from Vista to 7

    Anyone have any idea how to find out which drivers I need to download to fix the following errors. !  Base System Device !  Base System Device !  PCI Simple Communications Controller !  PCI Serial Port All in device manager, I have installed a ton of

  • No App to shoot video?

    I see this onslaught of iPhone App's of almost every type hitting the market...but have yet to see one that lets you shoot video with the iPhone's still camera, anyone seen a video app for the iPhone on the market yet?

  • Can't remove deleted, hidden files

    Transferred large picture folder (1.6 tbyte) to new 4 tb external thunderbolt drive (2 by 2 tb, Raid 0) on new late 2013 macbook pro running Mavericks. Deleted this file, and emptied trash, and then used Lightroom to more correctly transfer this 1.6