This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Forgetting the Past" Watch "Forgetting the Past" New topic
Author

Forgetting the Past

Chris Lawson
Greenhorn

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
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
location.replace("/timeentrysignon.jsp");
</SCRIPT>
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
Greenhorn

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?
Thanks,
Chris
Chris Lawson
Greenhorn

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
Greenhorn

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: http://aspose.com/file-tools
 
subject: Forgetting the Past
 
Similar Threads
Pulling data from the days of past
comment?
JavaScript function in HTML body
Is Javascript1.5 supported by IE6
INSERT THE VALUE OF A FORM FIELD INTO A JAVA STRING (without page refresh)