[Lift] Re: setting cookies in an ajax response

2009-09-14 Thread David Pollak
Please open a ticket at http://github.com/dpp/liftweb/issues

On Sat, Sep 12, 2009 at 10:54 AM, harryh har...@gmail.com wrote:


 I have an SHtml.ajaxSelect that, when executed sets a cookie:

 S.addCookie(HTTPCookie(CITYID, city.id.toString))

 and then returns a JsCmds.RedirectTo(uri) command.  The cookie isn't
 actually being set (if I look at the live http headers the Set-Cookie
 line isn't sent down in the http response to the ajax call.

 It's not clear to me if this is correct behavior on lift's part, of if
 this is a bug.

 If it is correct behavior, is there a better way to do this sort of
 thing?

 -harryh
 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: setting cookies in an ajax response

2009-09-12 Thread marius d.

If it doesn't send down the cookie as you did, it sounds like a bug.
I'd fix it but I can't in the next couple of weeks.

Br's,
Marius

On Sep 12, 12:54 pm, harryh har...@gmail.com wrote:
 I have an SHtml.ajaxSelect that, when executed sets a cookie:

 S.addCookie(HTTPCookie(CITYID, city.id.toString))

 and then returns a JsCmds.RedirectTo(uri) command.  The cookie isn't
 actually being set (if I look at the live http headers the Set-Cookie
 line isn't sent down in the http response to the ajax call.

 It's not clear to me if this is correct behavior on lift's part, of if
 this is a bug.

 If it is correct behavior, is there a better way to do this sort of
 thing?

 -harryh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---