Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2010
    Location
    Cardiff, UK
    Posts
    24
    Thanks
    2
    Thanked 0 Times in 0 Posts

    session timeout with php_value session.gc_maxlifetime

    After my users log in, the $_SESSION["logged_in"] expires after inactivity of the default 24 mins (1440 secs) and logs them out.

    I want to extend this to 2 hours (7200 secs), but adding the below into my .htaccess is not doing it.

    Code:
    php_value session.gc_maxlifetime 7200
    How can I extend the session timeout to 7200 with confidence that it is kicking in?
    I want to be able to do it in the .htaccess as I do not want to change it server wide in my php.ini

    Thanks in advance.

  2. #2
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,913
    Thanks
    91
    Thanked 581 Times in 568 Posts
    I once heard that you can have individual php.ini files in seperate directories. You might want to consider that option.
    Quote Originally Posted by deathshadow View Post
    So seriously, loosen up that tie, let out the belt, and try relating to normal people on the street instead of the gentleman's club crowd.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •