Ticket #1375: tg.patch
| File tg.patch, 1.0 kB (added by corvus, 1 year ago) |
|---|
-
turbogears/visit/api.py
old new 121 121 # The path should probably default to whatever the root is masquerading 122 122 # as in the event of a virtual path filter. 123 123 self.cookie_path= get( "visit.cookie.path", "/" ) 124 # The secure bit should be set for HTTPS only sites 125 self.cookie_secure= get( "visit.cookie.secure", False ) 124 126 # By default, I don't specify the cookie domain. 125 127 self.cookie_domain= get( "visit.cookie.domain", None ) 126 128 assert self.cookie_domain!="localhost", \ … … 193 195 cookies= cherrypy.response.simple_cookie 194 196 cookies[self.cookie_name]= visit_key 195 197 cookies[self.cookie_name]['path']= self.cookie_path 198 if self.cookie_secure: 199 cookies[self.cookie_name]['secure']= True 196 200 if self.cookie_domain: 197 201 cookies[self.cookie_name]['domain']= self.cookie_domain 198 202 log.debug( "Sending visit ID cookie: %s",