Re: Session problems
From: Daniel Bengs (a-very_at_non-existing-e-mail-adress.com)
Date: 10/30/03
- Next message: Brian: "Re: PHP Based Shopping cart"
- Previous message: Shawn Wilson: "Re: Hiding email links from spammers"
- In reply to: Daniel Bengs: "Re: Session problems"
- Next in thread: Matthias Esken: "Re: Session problems"
- Reply: Matthias Esken: "Re: Session problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Oct 2003 17:01:15 +0200
Daniel Bengs wrote:
> Matthias Esken wrote:
>
>> Daniel Bengs <a-very@non-existing-e-mail-adress.com> schrieb:
>>
>>
>>> I've got a problem where a normal string variable loses its value
>>> after session_start() is called. The funny thing is, that this only
>>> happens for some people, and they are using IE6, but it does not
>>> happen with all versions of IE6. I've tested myself only with Mozilla
>>> and IE5, but the problem does not occur for me.
>>
>>
>>
>> Very strange. PHP is running on the server, not on the browser.
>>
>>
>>> I've got a username stored in $user, which is obtained from the $_POST
>>> variable, but after session_start() is called $user is empty, but the
>>> username still is in $_POST['username'].
>>
>>
>>
>> This is one of the problems if register_globals is activated. Could you
>> check this?
>
>
> Yes, according to phpinfo() register globals is on.
>
What's also common for the people in this case is that they are on an
internal network, not that I understand why that would make any
difference either... :)
And now I also noticed another funny thing. On one page where an
addition to a mysql database is made a field, which is the user who made
the addition, is empty for some persons, but not everyone who makes the
addition. The username value is retrieved with:
"((string) $_SESSION['username'])".
But when the username, on the same page, is written to a logfile, with
the same code above, it is not empty.
- Next message: Brian: "Re: PHP Based Shopping cart"
- Previous message: Shawn Wilson: "Re: Hiding email links from spammers"
- In reply to: Daniel Bengs: "Re: Session problems"
- Next in thread: Matthias Esken: "Re: Session problems"
- Reply: Matthias Esken: "Re: Session problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|