note 90750 modified in function.session-start by danbrown
| From: | danbrown@php.net | Date: | Fri, 08 May 2009 02:38:10 +0000 |
| Subject: | note 90750 modified in function.session-start by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154341@lists.php.net to get a copy of this message | ||
I found myself in trouble when using $_SESSION['varname']. The value from varname was not
shown with echo $_SESSION['varname'] in the page where I'd like to use that value.
After many tries I found that session_start() was missing in the page where I'd like to use the
value from varname. When I put de session_start() in that page the problem was solved.
--
Tive problemas utilizando $_SESSION['variavel']. A variavel não aparecia na página
que deveria utiliza-la.
Após muitas tentativas pude verificar que não estava usando session_start() na página que
receberia o valor da variável.
Inseri session_start() nessa pagina tambem e funcionou perfeitamente!
--was--
Tive problemas utilizando $_SESSION['variavel']. A variavel não aparecia na página
que deveria utiliza-la.
Após muitas tentativas pude verificar que não estava usando session_start() na página que
receberia o valor da variável.
Inseri session_start() nessa pagina tambem e funcionou perfeitamente!
I found myself in trouble when using $_SESSION['varname']. The value from varname was not
shown with echo $_SESSION['varname'] in the page where I'd like to use that value.
After many tries I found that session_start() was missing in the page where I'd like to use the
value from varname. When I put de session_start() in that page the problem was solved.
http://php.net/manual/en/function.session-start.php