Reply to Re: [PHP] sessioncookies?

Your name:

Reply:


Posted by William Stokes on 03/18/05 18:30

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@gmail.com> kirjoitti
viestissδ:827f7534050318055923d44650@mail.gmail.com...
> 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@operamail.com>
> 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
>>
>>

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация