Re: [php-gtk-webmaster] cvs: php-gtk-web / admin-logout.php
[email protected] (Andrei Zmievski) Sun, 9 Jul 2006 09:31:44 -0700
| Newsgroups | php.gtk.webmaster |
|---|---|
| Message-ID | <[email protected]> |
I think we should not pollute cookie namespace with multiple cookies.
The way to do it is to have one cookie (PHP-GTK, for example) that
contains multiple key=value pairs, like:
setcookie('PHP_GTK', 'foo=bar&boo=baz');
Then you can use parse_str() to parse it.
-Andrei
On Jul 9, 2006, at 9:24 AM, Steph Fox wrote:
> $_COOKIE['username']=>'emailofchoice'. I should probably make the
> timeout shorter, it's only intended for testing (so people can find
> their way around without wrecking the live db).
>
>> What kind of cookie would this set?
>>
>> -Andrei
>>
>>
>> On Jul 9, 2006, at 1:44 AM, Steph Fox wrote:
>>
>>> +setcookie($user = get_user(), '', time() - (3600*24), '/');
>>
>> --
>> PHP-GTK Webmaster Mailing List (http://gtk.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>> __________ NOD32 1.1380 (20060125) Information __________
>>
>> This message was checked by NOD32 antivirus system.
>> http://www.eset.com
>>