#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Ciudad de Mendoza,Mendoza,Argentina
    Posts
    6
    Rep Power
    0
    Is there someway to set gc_maxlifetime and gc_probability from the code and not to set these variables in the php.ini file.

    The question is because the sessions doesn't expire until 2 or 3 days, and I want to make the sessions expire no longer than 30 minutes.

    Thank you very much.
  2. #2
  3. No Profile Picture
    Viper_SB
    Guest
    Devshed Newbie (0 - 499 posts)
    Are you talking abou the max time till the page stops running? Because you can use:

    set_time_limit(60) (number is how many seconds) to do it per page.

    Or something else.


    ------------------
    Viper_SB
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Ciudad de Mendoza,Mendoza,Argentina
    Posts
    6
    Rep Power
    0
    Nope, I'm talking about how long a session could live, I mean, I create a session now and I want this session is automatically destroyed in 30 minutes, do you know how to do that??

    Thank you for your answer.

Similar Threads

  1. Why do sessions dissappear when entering a ssl webpage
    By cuboctahedron in forum PHP Development
    Replies: 3
    Last Post: July 2nd, 2003, 08:43 PM
  2. Membership system using sessions and cookies
    By m0nk3y in forum PHP Development
    Replies: 6
    Last Post: March 26th, 2002, 05:24 PM
  3. mysql sessions lifetime
    By almenara in forum PHP Development
    Replies: 4
    Last Post: October 6th, 2001, 04:17 PM
  4. Session lifetime issues
    By ryanh in forum PHP Development
    Replies: 0
    Last Post: September 21st, 2001, 04:43 PM
  5. Replies: 4
    Last Post: September 16th, 2001, 10:48 AM

IMN logo majestic logo threadwatch logo seochat tools logo