And if you're on a shared server then another site that is hosted on
the same server, that you know nothing about, may be clearing out your
session data if they have a low session.gc_maxlifetime value.  When on
a shared server it is usually best to store your temporary session
files within the site itself, that way they won't be clobbered by
another site.

On Sep 4, 11:49 am, Toro Hill <[email protected]> wrote:
> 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.nzhttp://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