I've done that. Still not working. -----Original Message----- From: Mike Brum [mailto:php@crazyted.com] Sent: den 5 oktober 2003 19:25 To: 'Disko_kex'; php-windows@lists.php.net Subject: RE: Session Problem Assuming this is tied into your other problem (which I read first), then the problem here is that it appears you're on a Windows machine and you don't have php.ini set up correctly. You need to set the session.save_path in php.ini to point to a directory that exists. Mine, for example is this: session.save_path = "C:\PHP\temp_dir" Just make sure that the dir exists and point it there. That will clear up the first error message and then the other ones will go away after that one's gone. -M -----Original Message----- From: Disko_kex [mailto:disko_kex@swedish-mushroom.com] Sent: Sunday, October 05, 2003 10:31 AM To: php-windows@lists.php.net Subject: Session Problem Hi, How can I save a session value? I tried: <?php session_start(); if (!empty($_SESSION["test"])) $_SESSION["test"]++; else $_SESSION["test"]=0; printf("%d",$session["test"]); ?> but I get this warnings and its not working at all. What should I do? Warning: session_start(): open(/tmp\sess_4d5fc486fcfae10349d5bf6fb21092ea, O_RDWR) failed: No such file or directory (2) in c:\inetpub\wwwroot\session.php on line 7 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at c:\inetpub\wwwroot\session.php:7) in c:\inetpub\wwwroot\session.php on line 7 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at c:\inetpub\wwwroot\session.php:7) in c:\inetpub\wwwroot\session.php on line 7 Warning: Unknown(): open(/tmp\sess_4d5fc486fcfae10349d5bf6fb21092ea, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php