• Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpSession, URLrewriting and cookies  RSS feed

 
Alexandre Baldo
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all! That's my first post!

I have a little problem with sessions...
Let me show you how my web app works:

login.jsp -> LoginServlet -> main.jsp -> many links and LOGOUT.

When you click the LOGOUT link the LogoutServlet is called.

LogoutServlet code:




BUT... if I click the BACK BUTTON on the browser the page does not expires!!! (WHY!!!???)
Instead it show me the last page inside the web app!!!

AND if I enter a URL for some link inside the web app it allows me to see the page!!! (It is not supposed to happen!!)

I am using URL rewriting in every page...

But when COOKIES are disabled it works just fine...
But I want COOKIES!!!

So.... any idea of what's going on?

Thank's!
Baldo.
[ August 04, 2006: Message edited by: Bear Bibeault ]
 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Alexandre Baldo

Welcome to Java Ranch,

If you are struggled enough tackling with handling the action of browser´┐Żs back button, you can find some useful information under this link with problem title.

Solving the logout problem properly and elegantly Solutions for JSP pages and Struts

hope this article helps you..
[ August 05, 2006: Message edited by: saif uddin ]
 
Alexandre Baldo
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Saif Uddin!

Thank's a lot! That link was a great help!

Thank you!

Baldo.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!