|
Posted by gosha bine on 07/26/07 12:33
On 26.07.2007 13:58 John H wrote:
> Hi,
>
> I'm busy fiddling with sessions under PHP5, and very quickly learned
> what I would have found out even sooner in the PHP manual - declaring
> your session variable on page1.php makes it available on page2.php
> (assuming that's the next page you load) but doesn't then make it
> available on page3.php unless you respecify it on page2.php.
This is not true. Once set, a "session variable" (more strictly, a key
in the $_SESSION array) is automatically available to all pages sharing
the same session.
--
gosha bine
makrell ~ http://www.tagarga.com/blok/makrell
php done right ;) http://code.google.com/p/pihipi
Navigation:
[Reply to this message]
|