NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

User Logout issue in web application

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
Santoshdv805



Joined: 23 Jun 2012
Posts: 10
Location: Nagpur

PostPosted: Thu Jul 05, 2012 7:55 am    Post subject: User Logout issue in web application Reply with quote

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

PostPosted: Thu Jul 05, 2012 3:09 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo