todding01 Posted December 12, 2007 Share Posted December 12, 2007 Okay, Forgive me for the simple question. Check this out. First Page: test.php <?php session_start(); $_session['test'] = 'test'; echo '<a href="test2.php">click</a>'; ?> Second Page: test2.php <?php session_start(); echo $_session['test']; ?> Seems like the second page would echo 'test'??? I just cannot get it to work. Have I oversimplified? Quote Link to comment Share on other sites More sharing options...
revraz Posted December 12, 2007 Share Posted December 12, 2007 Is the session save path set on your webserver in the php.ini? Quote Link to comment Share on other sites More sharing options...
rab Posted December 12, 2007 Share Posted December 12, 2007 Try $_SESSION instead of $_session. Quote Link to comment Share on other sites More sharing options...
todding01 Posted December 12, 2007 Author Share Posted December 12, 2007 $_SESSION fixed it... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.