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
wnix
Forum Newbie
Posts: 4 Joined: Thu Nov 20, 2003 6:56 pm
Post
by wnix » Thu Nov 20, 2003 6:56 pm
Hi,
I've just switched from the server's usual session data dir to my own:
session_save_path(mypath);
but now the session doesn't seem to timeout. I've tried:
define("MAX_IDLE_TIME", 10);
but without success.
Can the session timeout only be controlled from the server (php.ini...)? If not, what are my options?
Thanks,
Nick.
infolock
DevNet Resident
Posts: 1708 Joined: Wed Sep 25, 2002 7:47 pm
Post
by infolock » Thu Nov 20, 2003 8:29 pm
have you tried using
session.gc_maxlifetime ?
such as session.gc_maxlifetime = 1 second
wnix
Forum Newbie
Posts: 4 Joined: Thu Nov 20, 2003 6:56 pm
Post
by wnix » Fri Nov 21, 2003 12:40 am
umm... you use "session.gc_maxlifetime" in ini_set() only don't u? I've tried:
ini_set("session.gc_maxlifetime", 600);
but still sessions are not timing out.