Skip to content

Commit

Permalink
formatting and secret_key explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
iffy authored and anandology committed Jan 5, 2011
1 parent 1d3bb0f commit c3c117e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cookbook/sessions.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ Options related to sessions can be modified using the `sessions_parameters` dict
web.config.session_parameters['secret_key'] = 'fLjUfxqXtfNoIldA0A0J' web.config.session_parameters['secret_key'] = 'fLjUfxqXtfNoIldA0A0J'
web.config.session_parameters['expired_message'] = 'Session expired' web.config.session_parameters['expired_message'] = 'Session expired'


* cookie_name - name of the cookie used to store the session id * `cookie_name` - name of the cookie used to store the session id
* cookie_domain - domain for the cookie used to store the session id * `cookie_domain` - domain for the cookie used to store the session id
* timeout - number of second of inactivity that is allowed before the session expires * `timeout` - number of second of inactivity that is allowed before the session expires
* ignore_expiry - if true, the session timeout is ignored * `ignore_expiry` - if `True`, the session timeout is ignored
* ignore_change_ip - if false, the session is only valid when it is accessed from the same ip address that created the session * `ignore_change_ip` - if `False`, the session is only valid when it is accessed from the same ip address that created the session
* secret_key - *requires explanation* * `secret_key` - salt used in session id hash generation (requires more explanation? perhaps a link?)
* expired_message - message displayed when the session expires * `expired_message` - message displayed when the session expires

0 comments on commit c3c117e

Please sign in to comment.