| | |
Session in jsp
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2009
Posts: 3
Reputation:
Solved Threads: 0
hi, currently i'm working on new project, where once login using a particular id, it can not be use again to login in same machine even with different browser or even in other machine. how can done this. can i create a separate table in database so i can save and retrieve data od session id, creation time or last access time. can any one help me on this.
thanks
thanks
•
•
Join Date: May 2009
Posts: 5
Reputation:
Solved Threads: 1
Yes,
you may use a table for keeping track of all the details of active sessions when one user successfully login. I think it will be also a good idea to record the login time and use a timeout.
As a session variable is not valid when user change the browser it will not be really handy to use simple session variables for your purpose.
And take care you does not LOCK OUT a user who accedentally forget to logout.
Regards,
SNIP
you may use a table for keeping track of all the details of active sessions when one user successfully login. I think it will be also a good idea to record the login time and use a timeout.
As a session variable is not valid when user change the browser it will not be really handy to use simple session variables for your purpose.
And take care you does not LOCK OUT a user who accedentally forget to logout.
Regards,
SNIP
Last edited by happygeek; May 12th, 2009 at 7:04 am. Reason: fake sig snipped
Jsp Syntax (Toggle Plain Text)
session.removeAttribute("key"); and session.invalidate();
Failure is not fatal, but failure to change might be. - John Wooden
![]() |
Similar Threads
- jsp,eclipse and weblogic server (JSP)
- How to set session in jsp (JSP)
- Session Lost on JSP Page (JSP)
- adding more variables in session : jsp (JSP)
- print arraylist in jsp (JSP)
- i want source code for maintaining session in a jsp (JSP)
- How to expire a session (JSP)
- Get the user id from php page to a jsp page [Very Urgent] (Java)
Other Threads in the JSP Forum
- Previous Thread: display corresponding values
- Next Thread: Servlet question
| Thread Tools | Search this Thread |
apache backbutton combobox connection database development directorystructure dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 network parameters passing ping printinserverinsteadofclient redirect request.getparameter response servlet servletdopost()readxml sessions software ssl state_saving_method stocks sun tomcat tutorial update video web






