Can't use sessions?! oO

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
ShadowIce
Forum Commoner
Posts: 75
Joined: Tue Jan 12, 2010 8:43 am

Can't use sessions?! oO

Post 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?!
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Can't use sessions?! oO

Post by AbraCadaver »

Check the path for session.save_path in php.ini and make sure it's a valid "full" path.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
ShadowIce
Forum Commoner
Posts: 75
Joined: Tue Jan 12, 2010 8:43 am

Re: Can't use sessions?! oO

Post by ShadowIce »

Thanks mate! But I just switched to my other Apache server and it works like a charm! :)
Post Reply