[thelist] PHP Session Variables

Hans Zaunere zaunere at yahoo.com
Tue Apr 23 12:09:01 CDT 2002


session_start() automagically checks for a session id (either from a
URL or cookie) and will recreate the session if found.  If not, a new
session is created.  So, no, simply calling session_start() will work
as you want.

Hans Z.
New York PHP
http://nyphp.org


--- Jay Blanchard <jay.blanchard at niicommunications.com> wrote:
> Greetings group!
>
> I have a set of PHP pages that use session variables for a number of
> things.
> Rather than pass the session ID through the URL I usually place <?
> session_start(); ?> at the top of each page. While this works, I am
> afraid
> that I am starting new sessions for each page visited during the
> user's
> visit. Is there a better, more acceptable, cleaner, less resource
> intensive
> way to do this? I have searched for examples, but can find none in
> either
> books or online (unless I am misreading some of the information I
> have
> seen).
>
> TIA!
>
> Jay
>
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !


__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/



More information about the thelist mailing list