By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,616 Members | 2,026 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,616 IT Pros & Developers. It's quick & easy.

How to expire an idle php page after some minutes

P: 28
Hi,

I have created a site with admin pages. I wish to expire this php admin page , if it is idle in 10 minutes. Is there is any method to implement this using session variables in php?

Thanks in advance
Benoy
Dec 19 '07 #1
Share this Question
Share on Google+
2 Replies


MarkoKlacar
Expert 100+
P: 296
Hi,

to answer you question correclt you need to define what you mean by idle.
What you can do is look at the sleep function, sleep for 600s and then redirect the page. It's up to you.

Good luck
Dec 20 '07 #2

Ranjan kumar Barik
P: 95
Hi,

I have created a site with admin pages. I wish to expire this php admin page , if it is idle in 10 minutes. Is there is any method to implement this using session variables in php?

Thanks in advance
Benoy
Hi,
Just check these out.
http://www.thescripts.com/forum/thread556290.html
http://www.thescripts.com/forum/thread2477.html

Happy programming!
:)
Dec 20 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.