aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools/session.py
Commit message (Collapse)AuthorAgeFilesLines
* Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code.Ben Sturmfels2021-03-051-1/+1
|
* babel 1.0 doesn't have a localedata.list() method, so updated setup.py.Rodney Ewing2013-07-291-1/+1
| | | | made "import crypto" fully qualified
* save “stay_logged_in” in the sessionJakob Kramer2013-07-111-2/+8
| | | | | | Since sessions are rebuilt, e.g. when you try to post a blank comment and therefore receive an error message, the session will be overwritten without the old max_age.
* add login option: stay_logged_inJakob Kramer2013-07-111-1/+2
| | | | | | | As proposed in issue #354; it adds an attribute max_age to mediagoblin.tools.session.Session that is passed to response.set_cookie; max_age is set to 30 days if the checkbox is selected
* Fix sessions so they work across the site.Christopher Allan Webber2013-04-101-3/+1
|
* Make session cookies more secure.Elrond2013-04-091-3/+6
| | | | | | | | | 1. Our session cookies only need to be available to http, so mark them appropiately. 2. Send the cookie to the subpath for mediagoblin. And instantiate a session manager on the app, once.
* Call is_updated instead of testing it boolean.Brett Smith2013-03-251-1/+1
|
* Set a starting value for session.send_new_cookie.Brett Smith2013-03-241-1/+5
| | | | | | This makes session.__init__ slightly more complicated but probably simplifies everything else, especially if we make the class smarter later by having it track changes itself.
* Delete the session cookie on an empty session.Brett Smith2013-03-241-1/+4
|
* Back sessions with It's Dangerous.Brett Smith2013-03-241-0/+60
This is a contribution to #668.