Automatically Ending a Session After a Period of Time

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
Sigmund Freud
Forum Newbie
Posts: 2
Joined: Fri Aug 01, 2003 6:00 pm

Automatically Ending a Session After a Period of Time

Post by Sigmund Freud »

I currently use php nuke to run my website. However, I want to add a script that will track how often users log into the site. The script itself is not a problem.

I want to make it so that after 1 hr, their session automatically ends, and they are forced to log in again.

Any ideas? Thanks in advance!
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Post by Jade »

http://us3.php.net/manual/en/function.s ... expire.php


Learn to use the php manual....hehe. Hope that helps.


Jade
Sigmund Freud
Forum Newbie
Posts: 2
Joined: Fri Aug 01, 2003 6:00 pm

Post by Sigmund Freud »

:) Thanx man!
Post Reply