my dog learned polymorphism
The moose likes HTML, CSS and JavaScript and the fly likes Forgetting the Past Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Forgetting the Past" Watch "Forgetting the Past" New topic

Forgetting the Past

Chris Lawson

Joined: Jul 23, 2001
Posts: 5
While attempting to disable the ability of users to go back the timeentrysignon.jsp page, I tried to follow some suggestions found on Java Ranch.
When I attempted the
It just forwarded me to the timeentrysignon.jsp, which was not what I expected. Any idea why this happened???
Brian Glodde
Ranch Hand

Joined: Jun 27, 2001
Posts: 171
the code is doing exactly as it should. if you're trying to not show a login type page once the user has already logged in, use a simple session variable, then check that session variables value at the top of timeentrysignon.jsp. then you can easily redirect away.
Chris Lawson

Joined: Jul 23, 2001
Posts: 5
My goal was to remove the time-entry page from the history, so a user on a kiosk for example may not use the back button to access a previous users hours. Any suggestions?
Chris Lawson

Joined: Jul 23, 2001
Posts: 5
I've tried all sorts of pragma no-cache and <META HTTP-EQUIV="Expires" CONTENT="0"> stuff to no avail... I was hoping this would redirect a "back" to the signon page....
R Hunter

Joined: Aug 14, 2001
Posts: 8
I would agree with Brian and use session variables. You can also use cookies with time-stamp sections that only last for so long. When they are invalid you can direct them to a login page.
With session variables you can make it so that after a specific amount of time has elapsed with inactivity then the session is terminated.
I agree. Here's the link:
subject: Forgetting the Past
It's not a secret anymore!