|
Posted by Dave on 07/11/05 17:05
("Dave Smithz" <SPAM FREE WORLD>) decided we needed to hear...
>
> "chotiwallah" <chotiwallah@web.de> wrote in message
> news:1121082522.308965.201000@g14g2000cwa.googlegroups.com...
> > frames might make a diference: php starts session for single scripts,
> > not for browser windows or whole domains. that means a session_start()
> > call is needed for every script that makes use of the session.
> >
> > another thought: does your login validate the user's ip? if yes, try
> > without it, because if your user's connections are idle, their
> > computers might disconnect, and then connect from a differnet ip again,
> > which invalidates your login.
> >
> > micha
>
> Thanks again Micha,
> but know the login is quite basic and does not check IP address. Also every
> script does have its own session start, so I do not think this particular
> problem is related to the frames.
>
> Still a bit funny why I cannot change the session.cache_expire value (at
> least when I do a phpinfo it does not seem to change although I can change
> other values)
>
> Anyone else have any thoughts on what the problem could be here?
session.cache_expire has no effect if session.cache_limiter is set to
nocache which is the default and probably what you want if to be, so
theres probably no need to worry about why cache_expire doesn't change
for you.
For sessions to remain active yes you do have to change the
session.cookie_lifetime value, and you also should change the
session.gc_maxlifetime value to be the same. If you don't then even
though the session cookie will remain active for the user, the
session data file on the webserver will get deleted in a much
shorter period, invalidating the session.
Each time you do a session_start(), set the above values using ini_set
and you should be good to go...
--
Dave <dave@REMOVEbundook.com>
(Remove REMOVE for email address)
[Back to original message]
|