php-db | 2001071
Date: 07/11/01
- Next message: Rayman: "[PHP-DB] Update records on MySql with a form......."
- Previous message: Pepu: "[PHP-DB] problem running stored MsSQL procedure"
- In reply to: Ken Sommers: "Re: [PHP-DB] cookie problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The variables wont become available until the cookies are read - which
happens when the script is first loaded. Normally the cookies are set,
then a header is sent to reload the page - but be carful not to create an
endless loop of browser reloading...
Check out the examples on:
http://www.php.net/manual/en/function.setcookie.php if you still can't get
it working, let us know...
Tom
At 23:40 10/07/2001 -0700, you wrote:
>HI,
>my guess is is that the cookies will be killed the NEXT time you run this
>script.
>
>Ken
>----- Original Message -----
>From: "Brad Lipovsky" <syzme <email protected>>
>To: <php-db <email protected>>
>Sent: Tuesday, July 10, 2001 11:24 PM
>Subject: [PHP-DB] cookie problems
>
>
> > can anyone help me with this code? i cant believe it wont work, it seems
> > pretty simple!
> >
> > <?php
> > setcookie ("logged_in", "logged in", time() - 3600);
> > setcookie ("logged_user_name", "logged user name", time() - 3600);
> >
> > print "$logged_in <br>";
> > print "$logged_user_name";
> > ?>
> >
> > brad
> >
> >
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-db-unsubscribe <email protected>
> > For additional commands, e-mail: php-db-help <email protected>
> > To contact the list administrators, e-mail: php-list-admin <email protected>
> >
> >
>
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-db-unsubscribe <email protected>
>For additional commands, e-mail: php-db-help <email protected>
>To contact the list administrators, e-mail: php-list-admin <email protected>
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Rayman: "[PHP-DB] Update records on MySql with a form......."
- Previous message: Pepu: "[PHP-DB] problem running stored MsSQL procedure"
- In reply to: Ken Sommers: "Re: [PHP-DB] cookie problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

