Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can javascript time stamp a page to lock out for 24 hours?

Status
Not open for further replies.

joestmc

Instructor
Apr 10, 2008
2
US
Can Javascript time-stamp a page so that if a user visits the page then exits, they would have to wait 24 hours before visiting the page a 2nd time?

Ideally, the could recieve some sort of error message if they did attempt to visit the page a second time w/in a 24 hour lockout period.
Edit/Delete Message Reply With Quote
 
You can, but what if they disable javascript? Where do you plan to store the time stamp? I don't think this is a very good idea, I could see something set up where a timestamp could be kept in a cookie and that info could be used to redirect the user to a different page, but it's not something I would try.
 
Maybe this makes a difference?

The code/page will exist in an online course hosted on my company's intranet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top