By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,643 Members | 1,797 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,643 IT Pros & Developers. It's quick & easy.

session functions not working with windows XP, php 4.3.4

P: n/a
i have two simple pages, test.php and test2.php

test.php contains:

<?php
session_start();
$_SESSION['test']="blah";
?>

and test2.php contains:

<?php
session_start();
print $_SESSION['test'];
?>

in the php.ini file, my session save path is set to /tmp. i dont even know
where to look for the tmp folder. also, when i go to test2.php after
accessing test.php, the page is blank and it doesnt print "blah".

as i mentioned in the title, im using windows xp (home edition) with PHP
4.3.4 and apache 1.3

thanks
JP
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"kingofkolt" <je**********@comcast.net> wrote in message
news:mPAjc.43368$GR.6079477@attbi_s01...
i have two simple pages, test.php and test2.php

test.php contains:

<?php
session_start();
$_SESSION['test']="blah";
?>

and test2.php contains:

<?php
session_start();
print $_SESSION['test'];
?>

in the php.ini file, my session save path is set to /tmp. i dont even know
where to look for the tmp folder. also, when i go to test2.php after
accessing test.php, the page is blank and it doesnt print "blah".

as i mentioned in the title, im using windows xp (home edition) with PHP
4.3.4 and apache 1.3


1. Set your php.ini: session.save_path = c:\windows\temp

if still nothing, then

2. disable any firewalls such as ZoneAlarm and try again.
Jul 17 '05 #2

P: n/a
"kingofkolt" <je**********@comcast.net> wrote in message
news:mPAjc.43368$GR.6079477@attbi_s01...
i have two simple pages, test.php and test2.php

test.php contains:

<?php
session_start();
$_SESSION['test']="blah";
?>

and test2.php contains:

<?php
session_start();
print $_SESSION['test'];
?>

in the php.ini file, my session save path is set to /tmp. i dont even know
where to look for the tmp folder. also, when i go to test2.php after
accessing test.php, the page is blank and it doesnt print "blah".

as i mentioned in the title, im using windows xp (home edition) with PHP
4.3.4 and apache 1.3


You have to create the folder used for saving session data manually. If the
folder doesn't exist, PHP won't create it. Create folder name "tmp" on C: or
something and set the session save path to C:/tmp.
Jul 17 '05 #3

P: n/a
"kingofkolt" <je**********@comcast.net> wrote in message
news:mPAjc.43368$GR.6079477@attbi_s01...
i have two simple pages, test.php and test2.php

test.php contains:

<?php
session_start();
$_SESSION['test']="blah";
?>

and test2.php contains:

<?php
session_start();
print $_SESSION['test'];
?>

in the php.ini file, my session save path is set to /tmp. i dont even know
where to look for the tmp folder. also, when i go to test2.php after
accessing test.php, the page is blank and it doesnt print "blah".

as i mentioned in the title, im using windows xp (home edition) with PHP
4.3.4 and apache 1.3

thanks
JP


ok it works now. thanks for the help guys

- JP
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.