John David Anderson (_psychic_) wrote:
> On Aug 8, 2007, at 9:51 AM, Michael Augustyniak wrote:
>
>   
>> to login I use ajax form and I am trying to setcookie on action
>> and it just does not set the cookie in this action .
>> When I redirect the page to different controller , action and set
>> cookies there its working.
>>
>> Why cookie does not work on action with ajax form ?
>>
>> did that
>> setcookie("remember_me", '3', time()+3600);
>> and that
>> $_COOKIES['remember_me'] = '3';
>>     
>
> Is there any reason you're not just creating the cookies with  
> JavaScript?
>   

not but it extra code which I do not need, but probably it's the only way

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to