Make session timeout after idle for 2minute

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

Post Reply
xiaomahe
Forum Newbie
Posts: 11
Joined: Sun Jun 28, 2009 10:14 am

Make session timeout after idle for 2minute

Post by xiaomahe »

Hi, for security reason, i need to implement a timeout after user has been idle for 2 minute..

Let's say user has logged in and then idle for 2 minutes, it will automatically logout and redirect to the main page. how do i do that?

I am using session[login] to detect if user has already logged in or not.
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: Make session timeout after idle for 2minute

Post by McInfo »

Related topic: (broken) Timed php session

PHP Manual: Session Runtime Configuration

Edit: This post was recovered from search engine cache.
Post Reply