Session Problem

From: Date: Sun, 05 Oct 2003 14:30:38 +0000
Subject: Session Problem
Groups: php.windows 
Request: Send a blank email to php-windows+get-21675@lists.php.net to get a copy of this message
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

« previous php.windows (#21675) next »