Re: sessions
| From: | Daniel Clark | Date: | Sun, 23 May 2004 14:46:56 +0000 |
| Subject: | Re: sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186791@lists.php.net to get a copy of this message | ||
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?