August 30th, 2000, 12:44 PM
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.
August 30th, 2000, 01:05 PM
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.
August 30th, 2000, 01:12 PM
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.