Cookie and JSON request

View: New views
3 Messages — Rating Filter:   Alert me  

Cookie and JSON request

by Jens MF :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


HI: I want to make a JSON GET request and have a 'setCookie' entry in
the http response header. By default there is none.
How can I enable cookies with JSON?

-Jens

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Cookie and JSON request

by Jens MF :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I hope at least someone can reproduce this...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Cookie and JSON request

by mike-609 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Use cookies[:name] = whatever in your response action

2009/11/6, Jens MF <jens.is.located@...>:
>
> HI: I want to make a JSON GET request and have a 'setCookie' entry in
> the http response header. By default there is none.
> How can I enable cookies with JSON?
>
> -Jens
>
> >
>

--
Von meinen Mobilgerät aus gesendet

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---