PHP Classes

Session TImeout

Recommend this page to a friend!

      Secure Session  >  All threads  >  Session TImeout  >  (Un) Subscribe thread alerts  
Subject:Session TImeout
Summary:How do you set the session timeout using this class?
Messages:4
Author:vikram ghotgalkar
Date:2008-10-23 12:11:34
Update:2008-12-29 00:56:37
 

  1. Session TImeout   Reply   Report abuse  
Picture of vikram ghotgalkar vikram ghotgalkar - 2008-10-23 12:11:34
I've been trying to set the session time out, but nothing seems to work


  2. Re: Session TImeout   Reply   Report abuse  
Picture of Vagharshak Tozalakyan Vagharshak Tozalakyan - 2008-10-24 10:08:47 - In reply to message 1 from vikram ghotgalkar
Hello,
Just use PHP's native functionality to control the session state - ini_set() along with session.* parameters. You may check the PHP manual's "Session Handling Functions" for details.

  3. Re: Session TImeout   Reply   Report abuse  
Picture of vikram ghotgalkar vikram ghotgalkar - 2008-10-24 12:59:34 - In reply to message 2 from Vagharshak Tozalakyan
hey thanks a lot will try it out and will get back to you.

  4. Re: Session TImeout   Reply   Report abuse  
Picture of para para - 2008-12-29 00:56:37 - In reply to message 3 from vikram ghotgalkar
try somehting like

$timeout = ini_set("session.gc_maxlifetime", 1600000);