RE: [PHP] php sessions...
| From: | Dan Joseph | Date: | Fri, 16 May 2003 15:57:19 +0000 |
| Subject: | RE: [PHP] php sessions... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147910@lists.php.net to get a copy of this message | ||
Hi,
You just need to put session_start(); at the top of the pages you want to
use the sessions with.
-Dan Joseph
> -----Original Message-----
> From: Bruce Douglas [mailto:bedouglas@earthlink.net]
> Sent: Friday, May 16, 2003 11:56 AM
> To: 'PHP Lists'
> Subject: [PHP] php sessions...
>
>
> hey a quick question/clarification...
>
> i have the following...
>
> <?php
> session_start();
> $_SESSION['foo'];
>
> $_SESSION['foo'] = "ffoo";
>
> ?>
>
> later in the code i want to use the session var... my question... how/what
> do i need to use the $foo var. I was under the impression that $foo was
> automatically available when declaring the session var... do i need to use
> session_register('foo')? if i do, why... wouldn't the "foo" session
> var
> already be registered with $_SESSION['foo']
>
> i have php 4.3.1
>
> arrggghhh..!!!!
>
> thanks
>
> bruce
> bedouglas@earthlink.net
>
> ps. i've done a google search ..but not quite sure as to how it really
> works/what's really going on...
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>