Re: cookies ajax

2007-08-08 Thread Michael Augustyniak

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
-~--~~~~--~~--~--~---



Re: cookies ajax

2007-08-08 Thread John David Anderson (_psychic_)


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?

-- John

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



cookies ajax

2007-08-08 Thread Michael Augustyniak

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';

thanks for help

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---