Find your php.ini file and change this line

session.save_path = c:\winnt\temp or
session.save_path = c:\windows\temp

if you use W2k give all permission the temp dir for everyone...



-----Original Message-----
From: Ben [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 6:40 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP Sessions


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




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to