networkthis Posted May 17, 2008 Share Posted May 17, 2008 I noticed that you had echo $_SESSION['username']; shouldn't it be $_SESSION['username']; Link to comment https://forums.phpfreaks.com/topic/105979-session/page/2/#findComment-543851 Share on other sites More sharing options...
PFMaBiSmAd Posted May 18, 2008 Share Posted May 18, 2008 To show your settings, use a phpinfo(); statement in a .php file. There is a section in the output with the session settings. Copy and past that here so that someone can see what all the settings are. If no error was displayed, that would mean that there is not a header/content problem. There still are several possibilities, either with the session cookie or if your site is using the transparent sid on the url, as those are not automatically appended when you redirect... Link to comment https://forums.phpfreaks.com/topic/105979-session/page/2/#findComment-543856 Share on other sites More sharing options...
networkthis Posted May 18, 2008 Share Posted May 18, 2008 sorry, I noticed I mean I noticed you had <?php $_session['username']; ?> shouldn't it be <?php $_SESSION['username']; ?> Why not just try to simply echo <?php session_start(); echo $_SESSION['username']; ?> Link to comment https://forums.phpfreaks.com/topic/105979-session/page/2/#findComment-543876 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.