Browser expirations

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
php77
Forum Newbie
Posts: 11
Joined: Wed Mar 28, 2007 1:12 pm

Browser expirations

Post by php77 »

hi
what could be a very good technique, to make a page expirable after a definite duration, in case of using things like CAPTCHA, from the security point of view?
thank you!
User avatar
louie35
Forum Contributor
Posts: 144
Joined: Fri Jan 26, 2007 8:40 am
Location: Dublin
Contact:

Post by louie35 »

you could try javascript to refresh the page to another one like home page after a certain amount of time.
User avatar
louie35
Forum Contributor
Posts: 144
Joined: Fri Jan 26, 2007 8:40 am
Location: Dublin
Contact:

Post by louie35 »

or

<META HTTP-EQUIV=REFRESH CONTENT="5; URL=http://www.example..com">­

another option is to use Ajax to check the time stored in a session and compare it using php and if certain amount has passed redirect.
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

Are you trying to log users out after a certain period of time? Give us some context
Locked