|
From: Alan Aspuru-G. <as...@ok...> - 2003-03-14 18:23:57
|
Thanks Mike,
It makes sense. Now I understand, maybe if I converted the string
formatted date to a long-number formatted date it would also wokr as
expected. I will try it now!!
Alan
On Thu, 13 Mar 2003, M Maki wrote:
> Here is what I did, though it's not the best way to fix the problem, bu=
t it
> works. Maybe someone here knows the best way:
> =20
> Open for edit the /includes/cookie.inc.php file.
> Change all the $date variables to 0.
> Sample:
> setcookie("status", $status, $date); to
> setcookie("status", $status, 0);
> =20
> I'm not expert in php, but I believe this sets the cookie duration to =
the
> current session. Just means you have to log in each time you open the
> browser. Someone else I'm sure can explain it better.
> =20
> Good Luck!
> =20
> Mike
>=20
> ----- Original Message -----=20
> From: "Alan Aspuru-Guzik" <as...@ok...>
> To: <php...@li...>
> Sent: Wednesday, March 12, 2003 7:59 PM
> Subject: [Phphelpdesk-help] Strange error.
>=20
>=20
> > Hi PHPHelpdesk people,
> >=20
> > The software is exactly what I want, and the configuration was really
> > fast. I only have a 'problem'.
> >=20
> > I can't login as admin/admin to create new users and start using the
> > thing, because I get the following error:
> >=20
> > arning: setcookie() expects parameter 3 to be long, string given in
> > /var/www/html/webhelp/includes/cookie.inc.php on line 8
> >=20
> > Warning: setcookie() expects parameter 3 to be long, string given in
> > /var/www/html/webhelp/includes/cookie.inc.php on line 9
> >=20
> > Warning: setcookie() expects parameter 3 to be long, string given in
> > /var/www/html/webhelp/includes/cookie.inc.php on line 10
> >=20
> > Warning: setcookie() expects parameter 3 to be long, string given in
> > /var/www/html/webhelp/includes/cookie.inc.php on line 11
> >=20
> > Warning: setcookie() expects parameter 3 to be long, string given in
> > /var/www/html/webhelp/includes/cookie.inc.php on line 12
> >=20
> > I don't understand why, because if I look at cookie.inc.php, the thir=
d
> > parameter is just a $date, that I can echo correctly with echo $date;
> >=20
> > Any ideas?
> >=20
> > Alan
> >=20
> >=20
> >=20
> > -------------------------------------------------------
> > This SF.net email is sponsored by:Crypto Challenge is now open!=20
> > Get cracking and register here for some mind boggling fun and=20
> > the chance of winning an Apple iPod:
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> > _______________________________________________
> > Phphelpdesk-help mailing list
> > Php...@li...
> > https://lists.sourceforge.net/lists/listinfo/phphelpdesk-help
> >=20
>=20
>=20
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open!=20
> Get cracking and register here for some mind boggling fun and=20
> the chance of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> Phphelpdesk-help mailing list
> Php...@li...
> https://lists.sourceforge.net/lists/listinfo/phphelpdesk-help
>=20
--=20
Alan Aspuru-Guzik Dios mueve al jugador, y =E9ste, la =
pieza.
(510)642-2154 UC Berkeley =BFQu=E9 Dios detr=E1s de Dios la tra=
ma empieza
(925)422-8739 LLNL de polvo y tiempo y sue=F1o y agon=EDas=
? -Borges
|