[UPHPU] correct way to handle $_SESSION
jwollese at gmail.com
Mon Apr 19 11:16:12 MDT 2010
Have you tried named sessions? http://us3.php.net/manual/en/function.session-name.php
If you're using a shared host you can have these kinds of problems with persistent data. I've had issues with error_get_last() on my shared host, same deal.
On Apr 19, 2010, at 9:13 AM, Merrill Oveson wrote:
> I'm coding along and I've discovered something that bothers me....
> My $_SESSION array picks up other session variables from an entirely
> different php program. No a big deal except, I don't want to
> accidently overwrite something from one php program to the next.
> Is there a way to define something like $_SESSION that would be
> unique, (i.e. a unique name) and that I could simply call within any
> given script.
> Seems like there ought to be a way to create unique sessions that
> would be added to or have elements overwritten, etc.
> UPHPU mailing list
> UPHPU at uphpu.org
> IRC: #uphpu on irc.freenode.net
More information about the UPHPU