NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Santoshdv805
Joined: 23 Jun 2012 Posts: 10 Location: Nagpur
|
Posted: Thu Jul 05, 2012 7:55 am Post subject: User Logout issue in web application |
|
|
I have created a servlet & jsp based simple web application.
I used following jsp pages
1)login.jsp
2)UserSection.jsp
3)logout.jsp
In that application user have to entered in website from loging.jsp page.
After login user will see UserSection.jsp page, inside that jsp page I created hyperlink for user logout.
If user click on logout link, then logout.jsp page will display.
From that page if user clicked on back button of browser then again user goes to UserSection.jsp page.Insted of that I want to show login.jsp page again.
can any body solve this issue. |
|
| Back to top |
|
 |
SearchEngine27
Joined: 21 Jun 2012 Posts: 66
|
Posted: Thu Jul 05, 2012 3:09 pm Post subject: |
|
|
jsp is not my forte, but I know there is a function that you can set "onload" (I believe thats even the syntax), which executes when the jsp is loaded. so, from there, you just check if the person is logged in. If they are, then allow them to stay on that page, otherwise redirect them back to the login page
You might have to do some googling for this, as I don't know this stuff off the top of my head, but I know the functionality exists |
|
| Back to top |
|
 |
|
|
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 vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|