Re: sessioncookies?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK. so can I set 2 or more session cookies for the same user? Like this:
setcookie("sess_id","$sess_id",0,"/");
setcookie("cookie2","$another_variable",0,"/");

If so is there a limit? Or is it a bad idea for some other reason?

Thanks
-Will


"Ken" <kenkam@xxxxxxxxx> kirjoitti 
viestissä:827f7534050318055923d44650@xxxxxxxxxxxxxxxxx
> No, you'll have to use another cookie name.
> Alternatively, you can use arrays
>
> setcookie('cookiename['arrayname']', $value, time());
>
>
> On Fri, 18 Mar 2005 15:07:34 +0200, William Stokes <kalles@xxxxxxxxxxxxx> 
> wrote:
>> Hello,
>>
>> I have a following line in my code to set a session cookie when user logs
>> in. It works fine.
>> setcookie("sess_id","$sess_id",0,"/");
>>
>> Can I store more information to the session cookie? I mean other 
>> variables.
>> Like I tried it like this with no success.
>> setcookie("sess_id","$sess_id",$another_variable,0,"/");
>>
>> Thanks
>> -Will
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux