|
Posted by Jerry Stuckle on 07/26/07 13:26
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. I'm sure
> there's a very good reason for it, and I know I can get around it by
> using a database and the session ID, but I would really like to know:
> why? I've already searched, but can't find any more information on the
> issue.
>
> Thanks,
> John Heathcote
>
It should be available on every page you load - as long as you call
session_start() at the beginning of the page.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|