House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Sessions do not TimeOut

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
James Holmes
01/27/2007 07:03 AM

While the session ends for the user, the variables persist in memory until the end of the session timeout. How is the server to know when the user closed the browser? Sessions are maintained via cookies - what that sentence in the manual means is that instead of writing a cookie that lives when the browser is closed, the cookie is session-based and dies when the browser closes. The same person gets a new jsessionid and a new cookie on the next visit. ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Walter Conti
01/27/2007 11:59 AM

Thank you James: Agree, but the sessions are scheduled to expire after one hour <cfapplication name="#prefix#_blog_#blogname#" clientManagement = "no" setClientCookies = "no" setDomainCookies = "no" loginStorage = "session" sessionManagement = "yes" sessionTimeout = #CreateTimeSpan(0,1,0,0)# applicationTimeout = #CreateTimeSpan(1,0,0,0)#> --------- >While the session ends for the user, >the variables persist in memory until the end of the session timeout. >How is the server to know when >the user closed the browser? > I have this code in my Application.cfm that returns the number of sessions and the > number of sessions with a user loggedIn. Unfortunately the sessions do not timeout > and keep accumulating.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
James Holmes
01/27/2007 06:21 PM

So an hour and a bit after the last access by any person, a given session is still showing in the tracker? ----- Excess quoted text cut - see Original Post for more ----- -- CFAJAX docs and other useful articles: http://www.bifrost.com.au/blog/

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Walter Conti
01/27/2007 07:05 PM

Yep! It looks like my ISP resets between 1am and 6am. Until 1pm keep accumulating. In the morning the values look normal again. Does this make sense? Thanks for the help everybody. On Monday I will ask ISP if they have J2EE on. If they don't, could there be any reason they would refuse? Have a nice weekend So an hour and a bit after the last access by any person, a given session is still showing in the tracker? ----- Excess quoted text cut - see Original Post for more ----- sessions > and the > > number of sessions with a user loggedIn. Unfortunately the sessions do not > timeout > > and keep accumulating. -- CFAJAX docs and other useful articles: http://www.bifrost.com.au/blog/

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Richard White
01/27/2007 06:41 PM

if i have grasped this thread, do you want the session to end when the user closes the browser? if so then if you go to the cf administrator, go to the memory variables section under server settings, and turn on the 'Use J2EE Session Variables'.


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference