Please provide the code where you set the $_SESSION['userid'] variable.
"Pance" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >Have you tried other browsers ? > I've tried MS-IE 5.5 and Mozilla 1.4b on my Win98 computer. They both work. > I've tried MS-IE6 on my clients Win98 computer - it didn't work. > > > What server/os/php is on your machine and what on client's ? > My server is runing Linux 2.4.24 #3; PHP-4.3.3; Zend 1.3.0 > > > Can you post the session management part of tour code ? > I'm not sure what you mean by "session management". I use: > session_start(); > at the top of every PHP page and I try to verify the user by: > if (!$_SESSION['user_id']){ > printf("<a href=\"index.php\">You have not logged in. Please click this to > do so.</a>"); > exit(); > } > > Pance. > > > "Puiu Hrenciuc" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Have you tried other browsers ? > > Before you can say it is a browser issue you have to try as > > many browsers as possible and see if the problem is still there. > > What server/os/php is on your machine and what on client's ? > > Can you post the session management part of tour code ? > > Please provide more info in order to be able to get help. > > > > > > "Pance" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > I verify users to my website with sessions. It's been working fine for > the > > > past couple of years, but recently I started having some problems using > > > sessions for example: > > > session_register("user_id"); > > > if (!(user_id)){ .... > > > > > > and then I read the PHP manual and it suggested this instead: > > > session_start(); > > > if (!$_SESSION['user_id']){ .... > > > > > > which worked on my machine (Win98 and MS-IE5.5). But today I tried to > > login > > > to my page from the client's computer using MS-IE 6 and I got the error: > > > undefined index 'user-id'.... > > > > > > Does anybody know what's going on? Is there a bug with MS-IE6 when using > > > sessions? I've read some of the other comments here about IE6 but they > > apply > > > to forms, not sessions. > > > > > > Pance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php