Re: session management
| From: | Richard Jones | Date: | Wed, 09 Aug 2000 13:39:03 +0000 |
| Subject: | Re: session management | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10916@lists.php.net to get a copy of this message | ||
On Wed, 09 Aug 2000, sega wrote:
> caused by expire of session variable ?
> default expire time is 24 mins
I don't think that had anything to do with the problem I was having, but it
might cause a problem further down the line. Do you know how to set the life
of the session variable? The book I have doesn't even really touch on the
subject, and the online manual talks about session.cookie_lifetime, which
seems to refer only to the session id.
Cheers,
Richard
"I'm just trying to rid the world of all these fevered egos, who are tainting
our collective unconscious, and making us pay a higher psychic price than we
imagined."
Bill Hicks
>
> > Mark Faine wrote:
> > > Maybe you need to do a session_start();
> > > or turn on auto session start in php.ini
> > > more than likely it is something to do with your configuration
> >
> > I have cracked the problem with some code from webmonkey:
> >
> > session_start();
> >
> > if(!$PHPSESSID) {
> > session_register("ARRAY");
> > $ARRAY = array();
> > } elseif(!$ARRAY) {
> > $ARRAY = array();
> > }
> >
> > Anyway, thanks very much for your help - my brain is slowly solidifying
>
> again