|
Your time now: Mon Nov 23, 2009 3:29 pm
|
View unanswered posts | View active topics
| Author |
Message |
|
murliprasad
|
Post subject: Doubts regarding session management. Posted: Sun May 06, 2007 7:19 am |
|
Joined: Sun May 06, 2007 6:57 am Posts: 3
|
|
Once we set the session using session.setAttribute(). Will it stay active for the duration of session timeout set in WEB.XML
(I am using tomcat server).
How can the user manually logout and create a new session(before the session timeout). Do we have to use session.inactivate method.
Thank you in advance.
|
|
| Top |
|
 |
|
murliprasad
|
Post subject: I got it solved Posted: Tue May 08, 2007 10:17 am |
|
Joined: Sun May 06, 2007 6:57 am Posts: 3
|
|
Cheers All, I have got the problem solved.
I got my problem sorted using the two functions session.invalidate()
and request.getSession.isNew().
whenever the isNew() method returns false, the user is redirected to the homepage and if the user wants to forcefully logout, I have used the session.invalidate() method to do so.
Thanks everybody for your time.
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 2 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 0 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
|