This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Forgetting the Past

 
Chris Lawson
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 171
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic