Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The session is unavailable because no secret key was set. #107

Closed
raucci2000 opened this issue Oct 14, 2019 · 11 comments
Closed

The session is unavailable because no secret key was set. #107

raucci2000 opened this issue Oct 14, 2019 · 11 comments

Comments

@raucci2000
Copy link

raucci2000 commented Oct 14, 2019

Hi guys! I'm trying to use flask-session, but something happening.

ERROR MESSAGE:
RuntimeError: The session is unavailable because no secret key was set. Set the secret_key on the application to something unique and secret.

MY CODE:
from flask import request, url_for, Flask, Response, session
from flask_session import Session
import os

app = Flask(name)
SESSION_TYPE='redis'
PERMANENT_SESSION_LIFETIME=1800

app.config.update(
SECRET_KEY=os.urandom(24)
)

app.config.from_object(name)
Session(app)
app.run()

TESTING SESSION:
session["key"]="test 123"

@frostming
Copy link

Try this snippet

from flask import Flask, session
from flask_session import Session
import os

app = Flask(__name__)
SESSION_TYPE = "redis"
PERMANENT_SESSION_LIFETIME = 1800

app.config.update(SECRET_KEY=os.urandom(24))

app.config.from_object(__name__)
Session(app)

if __name__ == "__main__":
    with app.test_request_context("/"):
        session["key"] = "value"

you can run the script directly, but I can't reproduce the issue as you described.

@sginne
Copy link

sginne commented Feb 12, 2020

Have the same problem.
init.py of app

app = Flask(name, static_folder='./static/')
app.config.from_pyfile('../allium.cfg')
app.config.update(SECRET_KEY=app.secret_key)
Session(app)

allium.cfg

import random,string
SESSTION_TYPE="memcached"
WTF_CSRF_ENABLED=True
SECRET_KEY = ''.join(random.SystemRandom().choice(string.ascii_uppercase + string.digits) for _ in range(52))

And

session['masterkey']='masterkey'
in Blueprint

gives:

FLASK_APP = run.py
FLASK_ENV = development
FLASK_DEBUG = 0
In folder /home/sginne/dev/src/Allium
/home/sginne/dev/src/Allium/venv/bin/python3.7 -m flask run

  • Serving Flask app "run.py"
  • Environment: development
  • Debug mode: off
    ESNIOK2NVCW9BKDJ9MVXKL8DAXCA03GRAHRA517KVMKIZP6PZN86
  • Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
    no master key
    [2020-02-12 20:32:59,990] ERROR in app: Exception on /admin [GET]
    Traceback (most recent call last):
    File "/home/sginne/dev/src/Allium/venv/lib64/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app
    response = self.full_dispatch_request()
    File "/home/sginne/dev/src/Allium/venv/lib64/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "/home/sginne/dev/src/Allium/venv/lib64/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception
    reraise(exc_type, exc_value, tb)
    File "/home/sginne/dev/src/Allium/venv/lib64/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
    File "/home/sginne/dev/src/Allium/venv/lib64/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
    File "/home/sginne/dev/src/Allium/venv/lib64/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
    return self.view_functionsrule.endpoint
    File "/home/sginne/dev/src/Allium/app/routes/admin.py", line 9, in admin
    session['masterkey']='masterkey'
    File "/home/sginne/dev/src/Allium/venv/lib64/python3.7/site-packages/werkzeug/local.py", line 350, in setitem
    self._get_current_object()[key] = value
    File "/home/sginne/dev/src/Allium/venv/lib64/python3.7/site-packages/flask/sessions.py", line 103, in _fail
    "The session is unavailable because no secret "
    RuntimeError: The session is unavailable because no secret key was set. Set the secret_key on the application to something unique and secret.
    127.0.0.1 - - [12/Feb/2020 20:32:59] "GET /admin HTTP/1.1" 500 -

?

@psdon
Copy link

psdon commented Jul 16, 2020

Got the same error even SECRET_KEY was set

@Armster15
Copy link

For me it works when you add:

app.config['SESSION_TYPE'] = 'filesystem'

Anyways this project seems dead , and the forks of this project are also dead. Any good alternatives to this library?

@tf42src
Copy link

tf42src commented Jul 22, 2022

For me it works when you add:

app.config['SESSION_TYPE'] = 'filesystem'

Anyways this project seems dead , and the forks of this project are also dead. Any good alternatives to this library?

If it is complete and works as expected, you can still use it?

@cgironda
Copy link

cgironda commented Aug 9, 2022

I am not using even a session in my Flask application but I need to define the code below to get the flash message on my HTML homepage.
app.secret_key="anystringhere"

otherwise, I get the message below:
The session is unavailable because no secret key was set.

Do I really need to define a secret key under this situation?

@b-simjoo
Copy link

b-simjoo commented Dec 4, 2022

I have the same problem, many times ago I wrote a program that used session and I didn't need to set SECRET_KEY and everything worked fine, now even if I set SECRET_KEY it does not work and throw exception for every request. I tried all different ways to configure, even I used debugger to trace SECRET_KEY and everything seemed OK, it was there! but it keep saying that SECRET_KEY is not set.

@christopherpickering
Copy link

This should be fixed in release 0.5.0, coming soon.

@rayluo
Copy link
Contributor

rayluo commented May 22, 2023

This should be fixed in release 0.5.0, coming soon.

The change in release 0.5.0 does not seem to be relevant to this issue. That being said, it is fine to close it. People can always reopen it if necessary.

@AMAN1620
Copy link

AMAN1620 commented Mar 8, 2024

from flask_session import Session
from flask import Flask, render_template, request, jsonify,session,redirect

app = Flask(name)
app.secret_key = '_5#y2L"F4Q8z\n\xec]/'
app.config["SESSION_PERMANENT"] = True
app.config["PERMANENT_SESSION_LIFETIME"] = 300
app.config['SESSION_TYPE'] = 'filesystem'
Session(app)

@app.route("/")
def index_get():
return render_template("base.html")

after adding the session_type it worked

@Lxstr
Copy link
Contributor

Lxstr commented Mar 8, 2024

@AMAN1620 Which version are you using? In 0.6.0 and up you shouldn't need to set a secret key unless you are using SESSION_USE_SIGNER

DanielTsiang pushed a commit to DanielTsiang/traffic-sign-classifier that referenced this issue May 1, 2024
…in /services/flask (#75)

Updates the requirements on
[flask-session](https://github.com/pallets-eco/flask-session) to permit
the latest version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pallets-eco/flask-session/releases">flask-session's
releases</a>.</em></p>
<blockquote>
<h2>0.8.0</h2>
<p>Add DynamodDB backend and other minor fixes.</p>
<p>Full release notes: <a
href="https://flask-session.readthedocs.io/en/latest/changes.html#id1">https://flask-session.readthedocs.io/en/latest/changes.html#id1</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/pallets-eco/flask-session/blob/development/CHANGES.rst">flask-session's
changelog</a>.</em></p>
<blockquote>
<h2>0.8.0 - 2024-03-26</h2>
<p>Added</p>
<pre><code>- Add DynamoDB session interface
(`[#214](pallets-eco/flask-session#214)
&lt;https://github.com/pallets-eco/flask-session/pull/214&gt;`_).
- Add ability to install client libraries for backends using optional
dependencies (extras)
(`[#228](pallets-eco/flask-session#228)
&lt;https://github.com/pallets-eco/flask-session/pull/228&gt;`_).
<p>Fixed</p>
<pre><code>- Include prematurely removed ``cachelib`` dependency. Will
be removed in 1.0.0 to be an optional dependency
(`[#223](pallets-eco/flask-session#223)
&amp;lt;https://github.com/pallets-eco/flask-session/issues/223&amp;gt;`_).


0.7.0 - 2024-03-18
------------------

Changed
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Access session interfaces via subfolder, for example
&lt;code&gt;flask_session.redis.RedisSessionInterface&lt;/code&gt;
(&lt;code&gt;2bc7df
&amp;lt;pallets-eco/flask-session@2bc7df1be7b8929e55cb25f13845caf0503630d8&amp;gt;&lt;/code&gt;_).&lt;/li&gt;
&lt;li&gt;Deprecate &lt;code&gt;pickle&lt;/code&gt; in favor of
&lt;code&gt;msgspec&lt;/code&gt;, which is configured with
&lt;code&gt;SESSION_SERIALIZATION_FORMAT&lt;/code&gt; to choose between
&lt;code&gt;'json'&lt;/code&gt; and &lt;code&gt;'msgpack'&lt;/code&gt;.
All sessions will convert to msgspec upon first interaction with 0.7.0.
Pickle is still available to read existing sessions, but will be removed
in 1.0.0. (&lt;code&gt;c7f8ce
&amp;lt;pallets-eco/flask-session@c7f8ced0e1532dea87850d34b3328a3fcb769988&amp;gt;&lt;/code&gt;&lt;em&gt;,
&lt;code&gt;c7f8ce
&amp;lt;pallets-eco/flask-session@c7f8ced0e1532dea87850d34b3328a3fcb769988&amp;gt;&lt;/code&gt;&lt;/em&gt;)&lt;/li&gt;
&lt;li&gt;Deprecate &lt;code&gt;SESSION_USE_SIGNER&lt;/code&gt;
(&lt;code&gt;a5dba7
&amp;lt;pallets-eco/flask-session@a5dba7022f806c8fb4412d0428b69dd4a077e4a7&amp;gt;&lt;/code&gt;_).&lt;/li&gt;
&lt;li&gt;Deprecate
:class:&lt;code&gt;flask_session.filesystem.FileSystemSessionInterface&lt;/code&gt;
in favor of the broader
:class:&lt;code&gt;flask_session.cachelib.CacheLibSessionInterface&lt;/code&gt;
(&lt;code&gt;2bc7df
&amp;lt;pallets-eco/flask-session@2bc7df1be7b8929e55cb25f13845caf0503630d8&amp;gt;&lt;/code&gt;_).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Added&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;- Add time-to-live expiration for MongoDB
(`9acee3
&amp;lt;https://github.com/pallets-eco/flask-session/commit/9acee3c5fb7072476f3feea923529d19d5e855c3&amp;gt;`_).
- Add retry for SQL based storage
(`[#211](pallets-eco/flask-session#211)
&amp;lt;https://github.com/pallets-eco/flask-session/pull/211&amp;gt;`_).
- Add ``flask session_cleanup`` command and alternatively,
``SESSION_CLEANUP_N_REQUESTS`` for SQLAlchemy or future non-TTL backends
(`[#211](pallets-eco/flask-session#211)
&amp;lt;https://github.com/pallets-eco/flask-session/pull/211&amp;gt;`_).
- Add type hints (`7d7d58
&amp;lt;https://github.com/pallets-eco/flask-session/commit/7d7d58ce371553da39095a421445cf639a62bd5f&amp;gt;`_).
-   Add logo and additional documentation.
- Add vary cookie header when session modified or accessed as per
flask's built-in session (`7ab698
&amp;lt;https://github.com/pallets-eco/flask-session/commit/7ab6980c8ba15912df13dd1e78242803e8104dd6&amp;gt;`_).
- Add regenerate method to session interface to mitigate fixation
(`[#27](pallets-eco/flask-session#27)
&amp;lt;https://github.com/pallets-eco/flask-session/pull/27&amp;gt;`_,
`[#39](pallets-eco/flask-session#39)
&amp;lt;https://github.com/pallets-eco/flask-session/issues/39&amp;gt;`_)(`80df63
&amp;lt;https://github.com/pallets-eco/flask-session/commit/80df635ffd466fa7798f6031be5469b4d5dae069&amp;gt;`_).

Removed
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Remove null session in favour of relevant exception messages
(&lt;code&gt;[#107](pallets-eco/flask-session#107)
&amp;lt;pallets-eco/flask-session#107;,
&lt;code&gt;[#182](pallets-eco/flask-session#182)
&amp;lt;pallets-eco/flask-session#182
&amp;lt;pallets-eco/flask-session@d7ed1c6e7eb3904888b72f0d6c006db1b9b60795&amp;gt;&lt;/code&gt;_).&lt;/li&gt;
&lt;li&gt;Drop support for Python 3.7 which is end-of-life and precludes
use of msgspec (&lt;code&gt;bd7e5b
&amp;lt;pallets-eco/flask-session@bd7e5b0bbfc10cdfa9c83b859593c69cc4381571&amp;gt;&lt;/code&gt;_).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Fixed&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;- Prevent session identifier reuse on storage
miss (`[#76](pallets-eco/flask-session#76)
&amp;lt;https://github.com/pallets-eco/flask-session/pull/76&amp;gt;`_).
-   Abstraction to improve consistency between backends.
- Enforce ``PERMANENT_SESSION_LIFETIME`` as expiration consistently for
all backends
(`[#81](pallets-eco/flask-session#81)
&amp;lt;https://github.com/pallets-eco/flask-session/issues/81&amp;gt;`_)(`86895b
&amp;lt;https://github.com/pallets-eco/flask-session/commit/86895b523203ca67c9f87416bdbf028852dcb357&amp;gt;`_).
- Specifically include backend session interfaces in public API and
document usage
(`[#210](pallets-eco/flask-session#210)
&amp;lt;https://github.com/pallets-eco/flask-session/issues/210&amp;gt;`_).
- Fix non-permanent sessions not updating expiry
(`[#221](pallets-eco/flask-session#221)
&amp;lt;https://github.com/pallets-eco/flask-session/issues/221&amp;gt;`_).


0.6.0 - 2024-01-16
------------------

&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;p&gt;... (truncated)&lt;/p&gt;
&lt;/details&gt;
&lt;details&gt;
&lt;summary&gt;Commits&lt;/summary&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@65c05eae0e6d679047394b39a8d6e2bce8195ac3&quot;&gt;&lt;code&gt;65c05ea&lt;/code&gt;&lt;/a&gt;
Prep release&lt;/li&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@475cc038376d4d5c2949edf7751a61ed64b7f33c&quot;&gt;&lt;code&gt;475cc03&lt;/code&gt;&lt;/a&gt;
Merge branch 'erik' into development&lt;/li&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@1af5cb223bcb4bb556cf8b49e803700ac332ab89&quot;&gt;&lt;code&gt;1af5cb2&lt;/code&gt;&lt;/a&gt;
Remind the correct PR branch&lt;/li&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@b7a219bcac97e74276d8e419e6174aea2c4ffdad&quot;&gt;&lt;code&gt;b7a219b&lt;/code&gt;&lt;/a&gt;
Reduce documentation and remove filesystem extra&lt;/li&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@6c9a698b61ead380988ba4b69b0f161de47e1886&quot;&gt;&lt;code&gt;6c9a698&lt;/code&gt;&lt;/a&gt;
Fix docs announcement overflow&lt;/li&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@f8f5ad15f787c5b30b663f84883ad2c8108b8314&quot;&gt;&lt;code&gt;f8f5ad1&lt;/code&gt;&lt;/a&gt;
implemented DynamoDBSessionInterface and tests. (&lt;a
href=&quot;https://github.com/pallets-eco/flask-session/issues/214&quot;&gt;#214&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@5a3413b9b1d67a4116404f23022b58326a60fbdf&quot;&gt;&lt;code&gt;5a3413b&lt;/code&gt;&lt;/a&gt;
Add changelog and contributor&lt;/li&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@17369528b45d9b5a59003ec006ede35ced40f694&quot;&gt;&lt;code&gt;1736952&lt;/code&gt;&lt;/a&gt;
Fix docs requirements&lt;/li&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@a92914ed1196acc2eab4d562996ac944413fb19c&quot;&gt;&lt;code&gt;a92914e&lt;/code&gt;&lt;/a&gt;
Add docs&lt;/li&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@ab9a756a18de87033cf6d3b2d86c6dc46e006800&quot;&gt;&lt;code&gt;ab9a756&lt;/code&gt;&lt;/a&gt;
Tidy up dynamo db, add docker and requirements&lt;/li&gt;
&lt;li&gt;Additional commits viewable in &lt;a
href=&quot;pallets-eco/flask-session@0.6.1rc1...0.8.0&quot;&gt;compare
view&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/details&gt;

&lt;br /&gt;
</code></pre>


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
DanielTsiang pushed a commit to DanielTsiang/traffic-sign-classifier that referenced this issue May 1, 2024
…in /services/flask (#75)

Updates the requirements on
[flask-session](https://github.com/pallets-eco/flask-session) to permit
the latest version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pallets-eco/flask-session/releases">flask-session's
releases</a>.</em></p>
<blockquote>
<h2>0.8.0</h2>
<p>Add DynamodDB backend and other minor fixes.</p>
<p>Full release notes: <a
href="https://flask-session.readthedocs.io/en/latest/changes.html#id1">https://flask-session.readthedocs.io/en/latest/changes.html#id1</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/pallets-eco/flask-session/blob/development/CHANGES.rst">flask-session's
changelog</a>.</em></p>
<blockquote>
<h2>0.8.0 - 2024-03-26</h2>
<p>Added</p>
<pre><code>- Add DynamoDB session interface
(`[#214](pallets-eco/flask-session#214)
&lt;https://github.com/pallets-eco/flask-session/pull/214&gt;`_).
- Add ability to install client libraries for backends using optional
dependencies (extras)
(`[#228](pallets-eco/flask-session#228)
&lt;https://github.com/pallets-eco/flask-session/pull/228&gt;`_).
<p>Fixed</p>
<pre><code>- Include prematurely removed ``cachelib`` dependency. Will
be removed in 1.0.0 to be an optional dependency
(`[#223](pallets-eco/flask-session#223)
&amp;lt;https://github.com/pallets-eco/flask-session/issues/223&amp;gt;`_).


0.7.0 - 2024-03-18
------------------

Changed
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Access session interfaces via subfolder, for example
&lt;code&gt;flask_session.redis.RedisSessionInterface&lt;/code&gt;
(&lt;code&gt;2bc7df
&amp;lt;pallets-eco/flask-session@2bc7df1be7b8929e55cb25f13845caf0503630d8&amp;gt;&lt;/code&gt;_).&lt;/li&gt;
&lt;li&gt;Deprecate &lt;code&gt;pickle&lt;/code&gt; in favor of
&lt;code&gt;msgspec&lt;/code&gt;, which is configured with
&lt;code&gt;SESSION_SERIALIZATION_FORMAT&lt;/code&gt; to choose between
&lt;code&gt;'json'&lt;/code&gt; and &lt;code&gt;'msgpack'&lt;/code&gt;.
All sessions will convert to msgspec upon first interaction with 0.7.0.
Pickle is still available to read existing sessions, but will be removed
in 1.0.0. (&lt;code&gt;c7f8ce
&amp;lt;pallets-eco/flask-session@c7f8ced0e1532dea87850d34b3328a3fcb769988&amp;gt;&lt;/code&gt;&lt;em&gt;,
&lt;code&gt;c7f8ce
&amp;lt;pallets-eco/flask-session@c7f8ced0e1532dea87850d34b3328a3fcb769988&amp;gt;&lt;/code&gt;&lt;/em&gt;)&lt;/li&gt;
&lt;li&gt;Deprecate &lt;code&gt;SESSION_USE_SIGNER&lt;/code&gt;
(&lt;code&gt;a5dba7
&amp;lt;pallets-eco/flask-session@a5dba7022f806c8fb4412d0428b69dd4a077e4a7&amp;gt;&lt;/code&gt;_).&lt;/li&gt;
&lt;li&gt;Deprecate
:class:&lt;code&gt;flask_session.filesystem.FileSystemSessionInterface&lt;/code&gt;
in favor of the broader
:class:&lt;code&gt;flask_session.cachelib.CacheLibSessionInterface&lt;/code&gt;
(&lt;code&gt;2bc7df
&amp;lt;pallets-eco/flask-session@2bc7df1be7b8929e55cb25f13845caf0503630d8&amp;gt;&lt;/code&gt;_).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Added&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;- Add time-to-live expiration for MongoDB
(`9acee3
&amp;lt;https://github.com/pallets-eco/flask-session/commit/9acee3c5fb7072476f3feea923529d19d5e855c3&amp;gt;`_).
- Add retry for SQL based storage
(`[#211](pallets-eco/flask-session#211)
&amp;lt;https://github.com/pallets-eco/flask-session/pull/211&amp;gt;`_).
- Add ``flask session_cleanup`` command and alternatively,
``SESSION_CLEANUP_N_REQUESTS`` for SQLAlchemy or future non-TTL backends
(`[#211](pallets-eco/flask-session#211)
&amp;lt;https://github.com/pallets-eco/flask-session/pull/211&amp;gt;`_).
- Add type hints (`7d7d58
&amp;lt;https://github.com/pallets-eco/flask-session/commit/7d7d58ce371553da39095a421445cf639a62bd5f&amp;gt;`_).
-   Add logo and additional documentation.
- Add vary cookie header when session modified or accessed as per
flask's built-in session (`7ab698
&amp;lt;https://github.com/pallets-eco/flask-session/commit/7ab6980c8ba15912df13dd1e78242803e8104dd6&amp;gt;`_).
- Add regenerate method to session interface to mitigate fixation
(`[#27](pallets-eco/flask-session#27)
&amp;lt;https://github.com/pallets-eco/flask-session/pull/27&amp;gt;`_,
`[#39](pallets-eco/flask-session#39)
&amp;lt;https://github.com/pallets-eco/flask-session/issues/39&amp;gt;`_)(`80df63
&amp;lt;https://github.com/pallets-eco/flask-session/commit/80df635ffd466fa7798f6031be5469b4d5dae069&amp;gt;`_).

Removed
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Remove null session in favour of relevant exception messages
(&lt;code&gt;[#107](pallets-eco/flask-session#107)
&amp;lt;pallets-eco/flask-session#107;,
&lt;code&gt;[#182](pallets-eco/flask-session#182)
&amp;lt;pallets-eco/flask-session#182
&amp;lt;pallets-eco/flask-session@d7ed1c6e7eb3904888b72f0d6c006db1b9b60795&amp;gt;&lt;/code&gt;_).&lt;/li&gt;
&lt;li&gt;Drop support for Python 3.7 which is end-of-life and precludes
use of msgspec (&lt;code&gt;bd7e5b
&amp;lt;pallets-eco/flask-session@bd7e5b0bbfc10cdfa9c83b859593c69cc4381571&amp;gt;&lt;/code&gt;_).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Fixed&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;- Prevent session identifier reuse on storage
miss (`[#76](pallets-eco/flask-session#76)
&amp;lt;https://github.com/pallets-eco/flask-session/pull/76&amp;gt;`_).
-   Abstraction to improve consistency between backends.
- Enforce ``PERMANENT_SESSION_LIFETIME`` as expiration consistently for
all backends
(`[#81](pallets-eco/flask-session#81)
&amp;lt;https://github.com/pallets-eco/flask-session/issues/81&amp;gt;`_)(`86895b
&amp;lt;https://github.com/pallets-eco/flask-session/commit/86895b523203ca67c9f87416bdbf028852dcb357&amp;gt;`_).
- Specifically include backend session interfaces in public API and
document usage
(`[#210](pallets-eco/flask-session#210)
&amp;lt;https://github.com/pallets-eco/flask-session/issues/210&amp;gt;`_).
- Fix non-permanent sessions not updating expiry
(`[#221](pallets-eco/flask-session#221)
&amp;lt;https://github.com/pallets-eco/flask-session/issues/221&amp;gt;`_).


0.6.0 - 2024-01-16
------------------

&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;p&gt;... (truncated)&lt;/p&gt;
&lt;/details&gt;
&lt;details&gt;
&lt;summary&gt;Commits&lt;/summary&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@65c05eae0e6d679047394b39a8d6e2bce8195ac3&quot;&gt;&lt;code&gt;65c05ea&lt;/code&gt;&lt;/a&gt;
Prep release&lt;/li&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@475cc038376d4d5c2949edf7751a61ed64b7f33c&quot;&gt;&lt;code&gt;475cc03&lt;/code&gt;&lt;/a&gt;
Merge branch 'erik' into development&lt;/li&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@1af5cb223bcb4bb556cf8b49e803700ac332ab89&quot;&gt;&lt;code&gt;1af5cb2&lt;/code&gt;&lt;/a&gt;
Remind the correct PR branch&lt;/li&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@b7a219bcac97e74276d8e419e6174aea2c4ffdad&quot;&gt;&lt;code&gt;b7a219b&lt;/code&gt;&lt;/a&gt;
Reduce documentation and remove filesystem extra&lt;/li&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@6c9a698b61ead380988ba4b69b0f161de47e1886&quot;&gt;&lt;code&gt;6c9a698&lt;/code&gt;&lt;/a&gt;
Fix docs announcement overflow&lt;/li&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@f8f5ad15f787c5b30b663f84883ad2c8108b8314&quot;&gt;&lt;code&gt;f8f5ad1&lt;/code&gt;&lt;/a&gt;
implemented DynamoDBSessionInterface and tests. (&lt;a
href=&quot;https://github.com/pallets-eco/flask-session/issues/214&quot;&gt;#214&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@5a3413b9b1d67a4116404f23022b58326a60fbdf&quot;&gt;&lt;code&gt;5a3413b&lt;/code&gt;&lt;/a&gt;
Add changelog and contributor&lt;/li&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@17369528b45d9b5a59003ec006ede35ced40f694&quot;&gt;&lt;code&gt;1736952&lt;/code&gt;&lt;/a&gt;
Fix docs requirements&lt;/li&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@a92914ed1196acc2eab4d562996ac944413fb19c&quot;&gt;&lt;code&gt;a92914e&lt;/code&gt;&lt;/a&gt;
Add docs&lt;/li&gt;
&lt;li&gt;&lt;a
href=&quot;pallets-eco/flask-session@ab9a756a18de87033cf6d3b2d86c6dc46e006800&quot;&gt;&lt;code&gt;ab9a756&lt;/code&gt;&lt;/a&gt;
Tidy up dynamo db, add docker and requirements&lt;/li&gt;
&lt;li&gt;Additional commits viewable in &lt;a
href=&quot;pallets-eco/flask-session@0.6.1rc1...0.8.0&quot;&gt;compare
view&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/details&gt;

&lt;br /&gt;
</code></pre>


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests