• Post Reply Bookmark Topic Watch Topic
  • New Topic

Troubled sessions

 
Abhijit Rai
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a website containing top secret "eyes only " stuff,so to protect its contents I use java authentication.
I am able to authenticate the user properly and every thing works fine.
Where I am stuck is logging out a user once the user is authenticated.
I believe that the problem is in web browser caching and have tried a few things which did not work .
My top military general is annoyed as hell and I would be his Basset Hound 's dinner if the issue is not solved.
Here is the code listing :

web.xml


ControllerServlet1:



sec.jsp


home.jsp


The problem might be because the request being sent by my browser contains a Principal with the corresponding username and password . I dont want to go the java script way and am trying for a complete java solution.

Thanks for having a peek

 
ujjwal soni
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Which browser are you using ? Is it internet explorer or firefox or something else ?

 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you invalidating sessions inside a JSP ? Cant you do it inside the servlet code and then redirect the user to a login page ?

As long as the cache control headers are defined correctly you should have no problems with client/browser side content caching.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!