Commit graph

57 commits

Author SHA1 Message Date
David Lord
310fbfcf64
revert copyright year to project start
add copyright header to files
2018-02-08 12:43:30 -08:00
David Lord
382b13581e
clean up samesite docs 2018-01-23 15:11:50 -08:00
Fadhel_Chaabane
a1d9ebe4ab New Feature: Added Support for cookie's SameSite attribute. 2018-01-23 13:57:50 +00:00
David Lord
0a33954555
improve documentation for session attributes
add test for session attributes
2018-01-04 12:56:18 -08:00
David Lord
5e1ced3c05
make session serializer extensible
support serializing 1-item dicts with tag as key
refactor serializer into flask.json.tag module
continues #1452, closes #1438, closes #1908
2017-06-01 22:47:23 -07:00
David Lord
ea2e9609bc
Merge branch 'master' into json-object-hook 2017-06-01 06:40:27 -07:00
David Lord
b8eba0a3fa
use existing response.vary property to set vary header
closes #2345
2017-05-29 10:09:24 -07:00
David Lord
4a53840df0
APPLICATION_ROOT defaults to '/' 2017-05-28 14:08:53 -07:00
Kenneth Reitz
d911c897ee Merge branch 'master' into master 2017-05-25 14:22:53 -07:00
David Lord
bdf31cd423
extract patch_vary_header to helpers 2017-05-25 10:26:02 -07:00
Nina Zakharenko
e7cd68ba58 Don't overwrite Vary header when setting for cookie access #2317 2017-05-24 20:05:11 -07:00
David Lord
5d9dd0b379
set session accessed for setdefault 2017-05-20 13:00:17 -07:00
David Lord
ae133aa173
reorder session cookie checks to deleted, accessed, modified 2017-05-20 12:11:37 -07:00
David Lord
e2f4c0ac16
Merge branch 'master' into vary-cookies 2017-05-19 09:44:06 -07:00
David Lord
f75ad9fca2
refactor session cookie domain logic
cache result of session cookie domain
add warnings for session cookie domain issues
add changelog
2017-05-13 21:59:00 -07:00
José Oliveira
c3d49e29ea
show warning if session cookie domain is ip
closes #2007
2017-05-13 21:47:43 -07:00
Josh Rowe
8a8a608152 Move object_hook outside loads method so class can be extend and reused 2017-02-23 15:25:52 +00:00
Raphael Deem
0e79aba40d use dict instead of if/else logic (#2093) 2016-12-21 21:07:57 +01:00
Clenimar Filemon
77af942b98 Capitalize occurrences of 'flask' (#2067) 2016-11-01 18:52:32 -07:00
ThiefMaster
c5900a1adf s/1.0/0.11/ in versionadded/versionchanged markers
closes #1817
2016-05-23 14:43:23 +02:00
Timo Furrer
d526932a09 support timedelta for SEND_FILE_MAX_AGE_DEFAULT config variable 2015-10-24 07:04:23 +02:00
Parkayun
33534bb4a9 Happy New Year 2015 2015-01-02 11:35:00 +09:00
Mieszko
5c7557917b Minor typos fixed 2014-11-06 08:58:24 +01:00
defuz
8284217593 docs: `True, False and None` 2014-11-05 06:04:58 +03:00
Petr Zemek
0f3f476dcf Fix a typo in the description of SecureCookieSession.
The term "base class" (with a space) is used in another file, so use it here as well to make the wording consistent across the whole project.
2014-10-27 11:54:27 +01:00
Armin Ronacher
bafc139810 Added EXPLAIN_TEMPLATE_LOADING to help people debug templates not being loaded. 2014-09-03 17:57:51 +02:00
Aaron Schumacher
05ad436201 typo: "weather" -> "whether" 2014-08-28 13:35:53 -04:00
Jakub Stasiak
4541910381 Get rid of _tag->closure->_tag reference cycle 2014-06-04 14:47:26 +01:00
Mihir Singh
671c67aac9 Append a 'Vary: Cookie' header to the response when the session has been accessed 2014-04-16 17:38:41 -04:00
max demian
f3f7b640b9 Update sessions.py
missing backticks in docstring
2014-03-15 14:38:19 +01:00
Daniel Neuhäuser
d517f35d60 Merge branch '0.10-maintenance' 2014-01-02 19:21:55 +01:00
Daniel Neuhäuser
52098e1e4f Happy New Year 2014 2014-01-02 19:21:07 +01:00
Armin Ronacher
d1d835c023 Added SESSION_REFRESH_EACH_REQUEST config option.
This also changes how sessions are being refreshed.  With the new
behavior set-cookie is only emitted if the session is modified or if the
session is permanent.  Permanent sessions can be set to not refresh
automatically through the SESSION_REFRESH_EACH_REQUEST config key.

This fixes #798.
2013-07-30 16:43:54 +02:00
Armin Ronacher
58ad83f37c Added support for bytes in sessions back 2013-06-14 00:24:17 +01:00
Daniel Neuhäuser
135c53a5f2 Fix .iteritems() access in flask.sessions 2013-05-22 21:30:45 +02:00
Thomas Waldmann
522cd00093 python-modernize automated changes: fix_unicode (but without six.u()) 2013-05-18 18:12:30 +02:00
Thomas Waldmann
dcd052366b python-modernize automated changes: fix_next 2013-05-18 18:03:37 +02:00
Thomas Waldmann
0f8c47c988 python-modernize automated changes: fix_dict 2013-05-18 18:00:15 +02:00
Armin Ronacher
18673ba370 Added uuid support for new session serialization and documented it 2013-05-14 11:33:36 +01:00
Armin Ronacher
bfeee75696 Changed session cookie defaults to work better with google chrome 2013-01-29 19:31:45 +00:00
Armin Ronacher
6bd0080575 Added workaround for Chrome cookies 2013-01-28 15:08:54 +00:00
Armin Ronacher
2b885ce4dc Added better error reporting for unicode errors in sessions 2012-10-30 14:47:17 +00:00
Armin Ronacher
b146d8277a Added wrapper module around simplejson/json for much simplified customization. 2012-10-07 23:31:48 +02:00
Armin Ronacher
de5038f2fb Added total_seconds() helper for pythons before 2.7 2012-10-07 14:56:02 +02:00
Armin Ronacher
261c4a6aee Updated documentation for the new sessions 2012-10-07 12:40:59 +02:00
Armin Ronacher
fe85970665 Various improvements in regards to the itsdangerous usage, bumped to 0.17 2012-08-11 03:38:46 +01:00
Armin Ronacher
3f82d1b68e Switch to itsdangerous 2012-08-11 03:09:14 +01:00
Armin Ronacher
4df3bf2058 Implemented experimental JSON based sessions 2012-08-11 02:36:14 +01:00
Armin Ronacher
ee8417dac8 Late but 2010 -> 2011 in some files 2011-09-01 16:57:00 +02:00
Armin Ronacher
ccf464189b Added finer control over the session cookie parameters 2011-08-30 14:36:50 +02:00