...

View Full Version : HELP! Can't use sessions! oO



ShadowIce
01-16-2010, 02:07 PM
HELP! When I try to use this at the VERY top of the page:


<?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:


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?!

JAY6390
01-16-2010, 02:26 PM
Create a folder called sessiontemp in your c: drive then use

<?php
session_save_path('C:\\sessiontemp\\');
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'];

?> And see if that works.

ShadowIce
01-16-2010, 03:27 PM
Thanks, but I have decided to switch to my other Apache server, and it works fine now! :)

JAY6390
01-16-2010, 04:21 PM
Excellent, as long as you got it resolved :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum