Page 1 of 1

Can't use sessions?! oO

Posted: Sat Jan 16, 2010 8:05 am
by ShadowIce
HELP! When I try to use this at the VERY top of the page:

Code: Select all

<?php
 
session_start();
 
$_SESSION['f_name0001'] = $_POST['f_name0001'];
$_SESSION['l_name0001'] = $_POST['l_name0001'];
$_SESSION['ad_0001'] = $_POST['ad_0001'];
$_SESSION['co_0001'] = $_POST['co_0001'];
$_SESSION['c_0001'] = $_POST['c_0001'];
 
?>
I get:

Code: Select all

Warning: session_start() [function.session-start]: open(..\Server\tmp\sess_e8140ca2c9eabcfdec9c3ac769ca6da7, O_RDWR) failed: No such file or directory (2) in C:\Users\blah\htdocs\customerform\project\Orderform.php on line 15
How do I fix this?!

Re: Can't use sessions?! oO

Posted: Sat Jan 16, 2010 11:29 am
by AbraCadaver
Check the path for session.save_path in php.ini and make sure it's a valid "full" path.

Re: Can't use sessions?! oO

Posted: Sat Jan 16, 2010 12:39 pm
by ShadowIce
Thanks mate! But I just switched to my other Apache server and it works like a charm! :)