Menu

#1 Cookie error in auth.inc

open
nobody
None
5
2002-01-04
2002-01-04
thibaut
No

Hi,

Context :
- OS : RedHat 7.X
- Web server : Apache 1.3.19, PHP4
-
SQL server : PostgreSQL 7.1.2
- Browser : IE 6 / Opera /
Konqueror

There is apparently a bug in auth.inc regarding the
cookie creation : the domain name is not set in the setcookie
function.

Original
:
...
setcookie("data",$cookie,time()+($this-
>cookietime*60),"/");
...

Problem :
While using browser
like IE / Opera, the login was denied each time. While using
Konqeror, hopefully it worked and looking at the cookies we saw
that the domain name was not set correctly.

Solutions ?
- Adding
the domain name in the setcookie() function :

setcookie("data",$cookie,time()+($this-
>cookietime*6),"/","YOUR_DOMAIN_HERE");

It's working so
far for me...

Regards,

Thibaut
Dabonneville
tdab@rightvision.com

Discussion


Log in to post a comment.

MongoDB Logo MongoDB