"gargarensis" <ga*********@terra.es> wrote in message
news:40**************************@posting.google.c om...
I am using invalidate method from the httpSesion class , but when I
press the back button in the internet navigator, the session still is
valid.
Invalidating a session is server-side logic, the back-button is purely
client-side logic. You might set the appropriate HTTP headers when you send
pages to the browser to tell it it should never show cached pages but
instead always send a new request. Those headers can be a combination of:
Pragma=no-cache (for older browsers)
Cache-control=no-store (a stricter version of no-cache)
Expires=0
Setting these will prevent any non-deaf browser from showing cached content.
That way an invalidated session can be made visible to the user.
Regards,
Silvio Bierman