• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with SessionId  RSS feed

 
Mothea Anil Kumar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am doing Remote IP tracing in my project. For this i am storing userid,IP Address,login Time and Logout Time,sessionId values in database.Based on the sessionid i am storing the users logout time in database.
But there is problem with the sessionId that, when the user first time login and logout the values r stored perfectly. In the same browser if any other user login ( with out closing the browser) i am getting the same sessionid as previous one.And for any other users to i am getting the same sessionId repeatedly.

Give me the solution for gettting the different sessionId's.

Thanks
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kill the session when the user log's out.

use
session.invalidate() method to invalidate the session when user log's out
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!