sepoto Posted April 5, 2011 Share Posted April 5, 2011 I am getting a "Undefined index" error for this line: <?php if($_SESSION['logged_in']):?>. I was hoping to get some feedback. Has it been deprecated? If so what can I do with this? I have an entire website that relies on these lines using this system variable.Thank you Link to comment Share on other sites More sharing options...
justsomeguy Posted April 5, 2011 Share Posted April 5, 2011 Nothing in $_SESSION is a system or pre-defined variable. If $_SESSION doesn't have something called "logged_in", it's because you haven't put it there. Link to comment Share on other sites More sharing options...
jeffman Posted April 5, 2011 Share Posted April 5, 2011 Did you execute session_start before you wrote/read the data? Link to comment Share on other sites More sharing options...
sepoto Posted April 5, 2011 Author Share Posted April 5, 2011 Did you execute session_start before you wrote/read the data?I'm going to have to check out the existing code and see what exactly is happening with the things you have replied with. It could be a long process. I'm trying to unravel some existing code from another developer. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.