note 90750 added to function.session-start
| From: | suporte2 at sosdominios dot net | Date: | Fri, 08 May 2009 01:39:23 +0000 |
| Subject: | note 90750 added to function.session-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-154338@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 200.185.126.115
Probable Submitter: 200.138.209.84
----
Manual Page -- http://www.php.net/manual/en/function.session-start.php
Edit -- https://master.php.net/note/edit/90750
Del: integrated -- https://master.php.net/note/delete/90750/integrated
Del: useless -- https://master.php.net/note/delete/90750/useless
Del: bad code -- https://master.php.net/note/delete/90750/bad+code
Del: spam -- https://master.php.net/note/delete/90750/spam
Del: non-english -- https://master.php.net/note/delete/90750/non-english
Del: in docs -- https://master.php.net/note/delete/90750/in+docs
Del: other reasons-- https://master.php.net/note/delete/90750
Reject -- https://master.php.net/note/reject/90750
Search -- https://master.php.net/manage/user-notes.php