Re: change value of session variable?
| From: | Chris Shiflett | Date: | Wed, 21 Jul 2004 21:24:40 +0000 |
| Subject: | Re: change value of session variable? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191407@lists.php.net to get a copy of this message | ||
--- Five <primeooze@hotmail.com> wrote:
> Is it possible to assign a value to a session variable on say,
> page1.php:
>
> $_SESSION['favcolor'] = 'blue';
>
> and then on another page, say page2.php reassign the value:
>
> $_SESSION['favcolor'] = 'green'; ?
Yes.
> So far experimentation says no.
Show us the code! :-)
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly
Coming Fall 2004
HTTP Developer's Handbook - Sams
http://httphandbook.org/
PHP Community Site
http://phpcommunity.org/