List Info

Thread: How do you set the domain on the session id Cookie for multiple servers in the domain?




How do you set the domain on the session id Cookie for multiple servers in the domain?
user name
2007-01-07 20:20:03
I would like the cherrypy session to be recognized across
multiple
servers in the domain.
For example if someone has a browser tab open on http://myserver.com
and another on http://www.myserver.com
then I would like this to be
seen as the same session.
I believe that if the cookie domain is set to
".myserver.com" (Note the
leading ".") that the cookie will be sent on all
get/post requests for
both urls.
However it seems that the default behaviour of the session
filter in
cherrypy is to not send a domain which causes the cookie to
use the
current host as the domain. Is there any way (without
hacking
cherrypy.sessionfilter) to set the cookie domain?

Regards


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en

-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )