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" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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. > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php