Discussion: $_SESSION problem
Afficher un message
Vieux 11/04/2008, 15h44   #5
tedd
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] $_SESSION problem [SOLVED (sort-of)]

At 10:12 PM -0400 4/10/08, Eric Wood wrote:
>tedd wrote:
>>
>>[1] http://www.webbytedd.com/x/index.php
>>[2] http://sperling.com/x/index.php
>>
>>Both of these demos have the exact same code; and are on the same
>>server; with exactly the same php-info -- so, why do they behave
>>differently re sessions?

>
>Strange. I've run into issues whenever I use variable names which
>are the same as session variables. It's as if they step on each
>others toes. I try to use uniq var names. I've also recently run
>into customized 401 pages (which you may not see happen, check the
>logs) start up and the session data gets overwrite due to a lack of
>session file locking.
>-eric



-eric:

You didn't provide the reason why, but you did provide a solution.

Changing the variable names to be different than the session names
fixed the problem.

Now, if any php guru would care to tell me why, I would really like to know.

Thanks eric.

Cheers,

tedd


--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
  Réponse avec citation
 
Page generated in 0,06798 seconds with 9 queries