| Author |
How to maintain user name in all the Jsp pages
|
Dev Anand
Ranch Hand
Joined: Aug 30, 2009
Posts: 40
|
|
I have a web application which has 'Login' feature. Once I login to the application, it should check in all the Jsp Pages that it is logged in or not. If not, the application should be redirected to the login page quoting that 'He should login to use the application'.
I want to implement timeout feature also.
With Regards
Dev Anand. P
|
 |
Balu Sadhasivam
Ranch Hand
Joined: Jan 01, 2009
Posts: 874
|
|
Dev,
First thing, dont program to access your jsp directly unless there are no server-side processing involved.
"Session" is what you should be after. Configure a Filter to check if a user belongs to any session , (you could check with HttpSession methods) and route to login page accordingly.
|
 |
 |
|
|
subject: How to maintain user name in all the Jsp pages
|
|
|