Re: [PHP] $_SESSION problem [SOLVED (sort-of)]

2008-04-11 Thread tedd

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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] $_SESSION problem [SOLVED (sort-of)]

2008-04-11 Thread Ford, Mike
On 11 April 2008 14:45, tedd advised:

 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.

Sounds like a register_globals=On issue


 --
Mike Ford,  Electronic Information Services Adviser,
JG125, The Headingley Library,
James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 812 4730  Fax:  +44 113 812 3211


To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] $_SESSION problem [SOLVED (sort-of)]

2008-04-11 Thread Daniel Brown
On Fri, Apr 11, 2008 at 10:29 AM, Ford, Mike [EMAIL PROTECTED] wrote:

  Sounds like a register_globals=On issue

It does to me, as well.  I know, Tedd, that on the php1.net site
that you mentioned to me off-list, I'm about 99% positive that it's
the reason.  Shared hosts generally keep register_globals on and leave
it up to the individual customer to turn it off.  On that particular
server, though, since it's mostly developers, I may just send out an
email to get feedback and turn it off at the main, and then allow
ya'all to override it on your individual sites.

The thing that makes me wonder (and I haven't checked myself to
verify) is why two sites, on the same server, having the same
phpinfo() output, would have different results.

-- 
/Daniel P. Brown
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] $_SESSION problem [SOLVED (sort-of)]

2008-04-11 Thread Nathan Nobbe
top posting for the hell of it;
disregard last post; i didnt see the [solved] sort-of thread.

-nathan

On Fri, Apr 11, 2008 at 7:44 AM, tedd [EMAIL PROTECTED] wrote:

 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

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php