Session Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux