• Post Reply Bookmark Topic Watch Topic
  • New Topic

Session Problem

 
Santosh Maskar
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
If user log into the site after some time he will close the browser without doing the log out,
when agagin he open the site our system will automatically login to this user

somthing like javaranch site , when i will login and if i will exit without the logout and again try to open this site then there is no need to login again

i want to implemetn this.......
 
Shweta Rao
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Usually web pages set a cookie to maintain such logins in the client's computer. The cookie will be set until user logout. If the user closes the window without logout then when next time he access the page, the cokkie will be checked and the user will be logged in automatically.
 
N Rao
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You can choose any of the three possible options to track session using the HttpSession API.
1. Using Cookies
2. URL Rewriting
3. Using Hidden fields

For a detailed overview...please check Session Tracking

Hope this helps.

Good luck,
Rao
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!