Re: Session and MS-IE6
| From: | Pance | Date: | Tue, 02 Mar 2004 12:04:06 +0000 |
| Subject: | Re: Session and MS-IE6 | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179228@lists.php.net to get a copy of this message | ||
>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" <hpuiu@oxygensoftware.ro> wrote in message
news:20040302114729.85532.qmail@pb1.pair.com...
> 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" <pance@rogers.com> wrote in message
> news:20040302113923.62429.qmail@pb1.pair.com...
> > 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.