Determining when session expires

Advertisement
November 30

I want to be able to track the amount of time that the user spends on my site. I am going to insert a record into a database when the user logs on. I also want to insert a record when the user's session expires either from timing out or closing the browser window or leaving my site. Is it possible to determine when a user's session ends, particularly when it ends via the last two ways.
Thanks!

Advertisement

Replay

First, you can use a javax.servlet.http.HttpSessionBindingListener object put into the session as an attribute and implement the valueUnbound() method to do the database update. This will be called when you invalidate the session (unless you remove the attribute manually first).
So the problem is when will the session be invalidated..... There are really 4 things you are looking for:
1) session times out
2) user logs out (assuming you provide a log out link that invalidates the session)
3) browser closes
4) user leaves site (I assume you mean just goes to some other site in the same browser window)
1 and 2 are okay, cuz it invalidates the session and calls the valueUnbound method of the object you create as mentioned above.
For 3 and 4, you can do this in one of 2 ways:
A) Use frames in your web pages and in the top window, you can have a Javascript call some logout page. However, I'm not convinced that this will work in all situations.
B) Have an applet in the pages that does something to keep the connection alive. This requires an applet and a JVM in the client to run it. Probably not a good thing to rely on for public sites.
So really, there is no foolproof or simple way to handle 3 and 4, except to use session timeouts and rely on that.

View 2 Replies

How to forward automatically when session expires ?

November 30

Hi Techies, whenever session expires , I want my struts action to forward to logout page automatically. I know we can do it by implementing sessionlistener(session destroyed method). But how to forward using action mapping . any solution is appreciat

View All Replies

Is it possible to auto delete directory when the session expires?

November 30

I create a directory for each session based on the unique session id e.g. c:\website\8D143E46EA18FAEFEF4D807180A307E2 Is it possible to auto delete this directory when the session expires?thanks i found this great link which teach how to use HttpSess

View All Replies

Hi, I cant login to the facebook app on my iphone 5 ios 6.0.2.  I keep getting an error message saying 'There was an error logging in using single sign on' when im asked to log in again i get a 'session expired' message.  This only started happening yeste

October 11

Hi, I cant login to the facebook app on my iphone 5 ios 6.0.2.  I keep getting an error message saying 'There was an error logging in using single sign on' when im asked to log in again i get a 'session expired' message.  This only started happening

View All Replies

When does a session expire

November 30

Hello, I have experienced that the calendar 5.1.1 session will not die. I have checked the documentation and looked through the ics.conf, without success. Any suggestions? Thanks in advance, Robertoics.conf file should contain all the configuration i

View All Replies

Disco 3i - Session Expired?

November 30

I have just installed the Discoverer 3i on NT 4.0 Service pack 5, running OAS 4.0.8.1. (Oracle 8iEE is on a different server, I have verified TNS and connectivity) The install went smoothly, and I get the signon screen fine, however when I go to sign

View All Replies

Session expires and forwarding emails to recipi...

November 30

Hi  It  seems  similar  problems  are happening. Composing  an  email  appears  to  function ok  albeit  you  can  see the  screen wanting  to  disappear,but  it  sends ok. With  regards to  incoming   emails which  you  wish  to  redirect  to  recip

View All Replies

Session expire too quickly

November 30

Hello, I am using BC on a site bt the session expire very quickly. i think its cookie because when i hit save after filling items it take me to login screen. can i extend the time of user logged in?Hi If you are referring to secure zone expiry then u

View All Replies

No more than 1 sessions at a time are allowed. Please wait until open sessions expire.

October 11

I have been unable to log into my Actiontec MI424WR router this week, The router returns the message "No more than 1 sessions at a time are allowed. Please wait until open sessions expire." every time I try to log in. This has been going on for

View All Replies

Redirecting after session expires

November 30

Hi i have a user session object which implements HttpSessionBindingListener. what i would like it to do is when the unBound method is triggered, i want it to be directed to a logoff page. This process was created to automatically log off the users wh

View All Replies

Session Expired - SessionManager Problem?

November 30

This is a OAS4.0.8.1 problem. Session Expired message comes when the cartridge times out and exited. However, my servlet have no means to process this exception. By enabling the logging, the problems seems to be from oracle.oas.session.SessionManager

View All Replies

SJSAS 9 and JSF - session expiration

November 30

Hi I'm developing JSF (1.2) application. I'm using SJSAS 9, EJB 3.0 and toplink. My problem is session expiration. When user session expires and then user click for example on Save button on JSF form, application goes to login page, but after login u

View All Replies

Session expired exception

November 30

Hi, How/Where to catch session expired exception in web dynpro?  The following message is thrown when I click on the ui in portal. com.sap.tc.webdynpro.clientserver.session.SessionExpiredLongJumpException: Application session has expired: No applicat

View All Replies

Facebook session expired device not recognized

November 30

I see within facebook under devices recognized that my iPad is not listed, just my iPhone. How can I get it on the list? Perhaps this would stop the session expired messages and constant log ins!Try to remove my facebook account from my accounts and

View All Replies

Before session expires event

November 30

I need to know if there is any kind of way to fetch an event before the session expires. I know there is HttpSessionBindingListener, but this only gives me the event after the session expired. I need an event before it expires because I have to clean

View All Replies

ISE 1.2 CWA with Multiple PSNs - SessionID Replication / Session Expired

October 11

Hi all. I have a (2) Policy Services Nodes (PSNs) in an ISE 1.2 deployment running patch 1. We are using Wireless MAB and CWA on 5760 Wireless LAN Controllers running v3.3.3. We are hitting an issue wherein a client first passes MAB and then gets red

View All Replies

Determining when my iMac was purchased

November 30

Is there a way, (maybe using the serial number) to determine when my iMac was purchased? I do not have any receipts or personal information to use. Thanks!Hey Frank, Run your serial # here: http://www.chipmunk.nl/klantenservice/applemodel.html That w

View All Replies

Session expired,please log in again?!

November 30

Hello there to everybody I have an annoying problem with my iphone... Every time i try to long into facebook from my iphone,its keep saying session expired,please log in again,and i try,but i can`t,keep getting the same message.and i try to log in fr

View All Replies

Session expired - sitzungszeit abgelaufen

November 30

I have now a new ipad mini. After setup I want to download some Apps. But I can´t buy some apps with my Itunes account. (Need to change credit card  details). Seconds upon registering I get the message "session expired". It comes again and again

View All Replies

G/L determine when do the costing run

November 30

Hi Experts, Could you pls tell me hwo the G/L account determined when the std price of material is changed during costing run? The inventory account should be from the OBYC-BSX. Then what about the offsetting G/L? Thanks Jimmy> hwo the G/L account de

View All Replies

Tags:

  1. Backup easyserver has stopped
  2. mobilink ssl port chacking apps
  3. badi or bte in sap afab transaction
  4. A422_000_085_140402_WW_WIFI
  5. VIEW_MAINTENANCe_call
  6. rounding off in PR to PO
  7. CC&B xai
  8. using outline load utility
  9. L7EN
  10. QRRI
Copyrights 2019 Fcffair BigData Resource, All rights reserved