Should username have quote around it? Wouldn't it try to make it a constant otherwise?
echo $_SESSION['username'] >>Hi, >> >>All my session_start() calls were working fine. >>But since yesterday the vars i use does not keep there value >>i use $_SESSION['varname'] >> >>Nothing has been changed to the server normally, but on all my sites it does >>work anymore >> >>i think the problem is that when i use session_start() and then for example >>$_SESSION[username] = 'test'; >> >>on at an other page: >> >>session_start() >>then echo $_SESSION[username] gives blanco. >> >>How can this be? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php