Do you have another script that is using the same location to store sessions but has a different gc_maxlifetime? Relevant note from the PHP docs below.

Note:
If different scripts have different values of session.gc_maxlifetime but share the same place for storing the session data then the script with the minimum value will be cleaning the data. In this case, use this directive together with session.save_path.

Cheers
Toro

On 04/09/10 01:09, Richard Lake wrote:
Hi,

I’ve got a php based CRM system that is used by real estate agents, by
the nature of their work they use the browser intermittently so
frequently the next time they want to use the application it has timed out.

I’ve googled until I’m blue in the face on this and cannot change the
timeout from the current (approx) 20 minutes.

I’m on a shared server, I have the following settings before initiating
the session and I’ve got a local session manager to capture the sessions
in a MySQL table.

ini_set('session.gc_probability', 1);

ini_set('session.gc_divisor', 1);

ini_set('session.gc_maxlifetime', 36000);

ini_set('session.cookie_lifetime', 36000);

ini_set('session.use_only_cookies', 1);

ini_set('session.use_trans_sid', 0);

I’m currently considering having a timer based ajax function that just
does a session update to keep the session alive, but from everything
I’ve read I should be able to change the session timeout time.

Can any body point me in the right direction?

Thanks in advance

Richard

--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

--
http://karere.co.nz
http://accountaneer.com

--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to