Session Timeout?

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
Rebajas
Forum Newbie
Posts: 16
Joined: Tue Aug 20, 2002 9:35 am
Location: http://www.rebajas.co.uk/

Session Timeout?

Post by Rebajas »

I use sessions to keep user details but i guess they must timeout after a 'period' of time. Anyone know if you can change the default timout time in PHP?

In the manual there are references to the cookie lifetime - i am just using plain sessions and have not set any cookies so i don't beleive this applies. I also ran across msession-lifetime but there doesn't seem to be a good example of how this is used and when...

Cheers,

Tony.
dusty
Forum Contributor
Posts: 122
Joined: Sun Apr 28, 2002 9:52 pm
Location: Portsmouth, VA

Post by dusty »

session_cache_expire() might be what you're looking for.
Post Reply