Skip to content
Myr

fix links

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 1c35b98 · Browse files · 2 files+9 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+9 added−8 removed

  • other:+9 added−8 removed

2 files+9 added−8 removed

modified:docs/conf.py+2 added-1 removed
265 unmodified lines
266 'python': ('https://docs.python.org/3/', None),267 'werkzeug': ('http://werkzeug.pocoo.org/docs/', None),268 'click': ('http://click.pocoo.org/', None),269 'jinja': ('http://jinja.pocoo.org/docs/', None),270 'itsdangerous': ('https://pythonhosted.org/itsdangerous', None),271 'sqlalchemy': ('https://docs.sqlalchemy.org/en/latest/', None),272 'wtforms': ('https://wtforms.readthedocs.io/en/latest/', None),272 'blinker': ('https://pythonhosted.org/blinker/', None)273 'blinker': ('https://pythonhosted.org/blinker/', None),274}275276html_theme_options = {277 'touch_icon': 'touch-icon.png'
21 unmodified lines
modified:docs/security.rst+7 added-7 removed
211 unmodified lines
212213 # cookie expires after 10 minutes214 response.set_cookie('snakes', '3', max_age=600)215216For the session cookie, if ``session.permanent`` is set, then217:data:`SESSION_COOKIE_LIFETIME` is used to set the expiration. Flask's default218cookie implementation validates that the cryptographic signature is not older219than this value. Lowering this value may help mitigate replay attacks, where220intercepted cookies can be sent at a later time. ::216For the session cookie, if :attr:`session.permanent <flask.session.permanent>`217is set, then :data:`PERMANENT_SESSION_LIFETIME` is used to set the expiration.218Flask's default cookie implementation validates that the cryptographic219signature is not older than this value. Lowering this value may help mitigate220replay attacks, where intercepted cookies can be sent at a later time. ::221222 app.config.update(223 PERMANENT_SESSION_LIFETIME=600224 )
5 unmodified lines
230 session['user_id'] = user.id231 session.permanent = True232 ...233234Use :class:`TimedSerializer` to sign and validate other cookie values (or any235values that need secure signatures).234Use :class:`itsdangerous.TimedSerializer` to sign and validate other cookie235values (or any values that need secure signatures).236237- https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies238- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie239
11 unmodified lines