Re: PHP Sessions

From: Date: Mon, 20 May 2002 04:02:41 +0000
Subject: Re: PHP Sessions
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-13867@lists.php.net to get a copy of this message
Hi Ben... Do you have a tmp directory in your root directory? if not, PHP won't be able to write the session files there. You need to either change the session.save_path directive in php.ini, or create the /tmp directory, or I think you can store session info in memory - not sure how tho. Matt "Ben" <tall_benson@hotmail.com> wrote in message news:20020520034022.11086.qmail@pb1.pair.com... > Hey, > > I am trying to work out PHP sessions, but are having some trouble at the > first step. > > This code, which should be simplistic: > <?php > session_start(); > print "your session id is: ".session_id(); > ?> > > Results in this output: > Warning: open(/tmp\sess_52be4d339fbffacf1efc495cf16ed383, O_RDWR) failed: m > (2) in c:/documents/web/page1.php on line 2 > your session id is: 52be4d339fbffacf1efc495cf16ed383 > > I am running windows. Is there some kind of configuration change I have to > make to enable sessions or something? > > Thanks. > >

« previous php.windows (#13867) next »