Hello Pance,

Tuesday, March 2, 2004, 11:45:49 AM, you wrote:

P> and then I read the PHP manual and it suggested this instead:
P>       session_start();
P>       if (!$_SESSION['user_id']){ ....

P> which worked on my machine (Win98 and MS-IE5.5). But today I tried to login
P> to my page from the client's computer using MS-IE 6 and I got the error:
P> undefined index 'user-id'....

P> Does anybody know what's going on? Is there a bug with MS-IE6 when using
P> sessions?

An undefined index error is PHP code related, not browser related.
It's possible that the IE6 POST bug that is going around could cause
it IF your error is the result of a page which takes form input from a
user to build up that response.

Your code is checking to see if the user_id element of the session
array is false or not. Try checking to see if the element even exists
or not before checking to see what it equals.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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

Reply via email to