i have created a session in my jsp. and i want to end the sesion when the user closes its browser.
are there any solution without a javascript ? i mean can i do it by modifying the jsp source or web.xml ?
thanx all !
-
invalidate session when closing browser (5 messages)
- Posted by: sertac ozturk
- Posted on: December 12 2005 11:33 EST
Threaded Messages (5)
- invalidate session when closing browser by Vijayakumar Govindasamy on December 12 2005 23:49 EST
- invalidate session when closing browser by sertac ozturk on December 13 2005 07:19 EST
- Cookie Timeout by Rich Dredge on December 14 2005 00:11 EST
- invalidate session when closing browser by sertac ozturk on December 14 2005 09:43 EST
- close session by jacinto molina on September 29 2010 08:10 EDT
-
invalidate session when closing browser[ Go to top ]
- Posted by: Vijayakumar Govindasamy
- Posted on: December 12 2005 23:49 EST
- in response to sertac ozturk
Hi u can use this session timeout can be specified on web.xml
<session-config>
<session-timeout>30</session-timeout>
</session-config>.
U can also try this,I was using the project at http://securityfilter.sourceforge.net/. -
invalidate session when closing browser[ Go to top ]
- Posted by: sertac ozturk
- Posted on: December 13 2005 07:19 EST
- in response to Vijayakumar Govindasamy
thanx Vijayakumar Govindasamy;
the project is usefull and does what i want.. thanx for ur help,
but i think i couldnt explain what i want..
my problem is: i when the user logs in, i have created a session. i define its timeout period, and the session works but the user closes its browser, and reopen it, paste the direct link whic i use in my web app., and the session is still alive.. but i want to drop the session when the user closes all the program windows.. -
Cookie Timeout[ Go to top ]
- Posted by: Rich Dredge
- Posted on: December 14 2005 00:11 EST
- in response to sertac ozturk
If you don't specify a maxage value when writing the session cookie, it will be treated as a temporary cookie by the browser, and destroyed when the browser is closed. Any new browser sessions will not have this cookie, and therefore the application server will initiate a new session. -
invalidate session when closing browser[ Go to top ]
- Posted by: sertac ozturk
- Posted on: December 14 2005 09:43 EST
- in response to sertac ozturk
i was using mozilla as a web browser, mozilla doesnt end session when the browser closed..
but internet explorer kills the session and act as i want.. -
close session[ Go to top ]
- Posted by: jacinto molina
- Posted on: September 29 2010 08:10 EDT
- in response to sertac ozturk
Hi
did you resolve this situation??
session-timeout is correct but I need to invalidate session on close browser..
thanks