Changeset 2961

Show
Ignore:
Timestamp:
05/01/07 12:46:58 (2 years ago)
Author:
alberto
Message:

Applied #1375. Thanks James

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/CHANGELOG.txt

    r2959 r2961  
    77*Changes* 
    88 
     9* New ``visit.cookie.secure``config option to send cookie only over a secure connection. 
     10  #1375 by James E. Blair. 
    911* ``cherrypy.request`` is now available at the variables sent to every template. 
    1012  #1362 by Christoph Zwerschke. 
     
    6466*Contributors* 
    6567 
    66 Alberto Valverde, Fred Lin, jorge.vargas, Joseph Tate, Elvelind Grandin, Florent Aide, nludban, Jeff Kowalczyk, corvus, Christoph Zwerschke, iberonasia, alastair, cito, Felix Schwartz, Patrcik Lewis, Grover, pnfisher, Joost Moesker, Paul Johnston, Christian Vogler, Janzert, Chris Miles, Christopher Arndt, Jo Soares
     68Alberto Valverde, Fred Lin, jorge.vargas, Joseph Tate, Elvelind Grandin, Florent Aide, nludban, Jeff Kowalczyk, corvus, Christoph Zwerschke, iberonasia, alastair, cito, Felix Schwartz, Patrcik Lewis, Grover, pnfisher, Joost Moesker, Paul Johnston, Christian Vogler, Janzert, Chris Miles, Christopher Arndt, Jo Soares, James E. Blair
    6769 
    6870 
  • branches/1.0/turbogears/visit/api.py

    r2366 r2961  
    122122        # as in the event of a virtual path filter. 
    123123        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 ) 
    124126        # By default, I don't specify the cookie domain. 
    125127        self.cookie_domain= get( "visit.cookie.domain", None ) 
     
    193195        cookies[self.cookie_name]= visit_key 
    194196        cookies[self.cookie_name]['path']= self.cookie_path 
     197        if self.cookie_secure: 
     198            cookies[self.cookie_name]['secure']= True 
    195199        if self.cookie_domain: 
    196200            cookies[self.cookie_name]['domain']= self.cookie_domain