Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
ce173e43c7
|
|||
|
b3105423f8
|
|||
| 249a7abd89 | |||
| 093d28fe62 | |||
| 7e43c76ad0 | |||
| c25a62412d |
@@ -0,0 +1,7 @@
|
|||||||
|
[project]
|
||||||
|
name = "quart-session"
|
||||||
|
version = "3.0.1"
|
||||||
|
description = "Add your description here"
|
||||||
|
readme = "README.md"
|
||||||
|
requires-python = ">=3.13"
|
||||||
|
dependencies = []
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__version__ = '2.1.0'
|
__version__ = '3.0.0'
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class ServerSideSession(SecureCookieSession):
|
|||||||
"""Baseclass for server-side based sessions."""
|
"""Baseclass for server-side based sessions."""
|
||||||
|
|
||||||
def __init__(self, initial=None, sid=None, permanent=None, addr=None):
|
def __init__(self, initial=None, sid=None, permanent=None, addr=None):
|
||||||
super(ServerSideSession, self).__init__(**initial or {})
|
super(ServerSideSession, self).__init__(initial or {})
|
||||||
self.sid = sid
|
self.sid = sid
|
||||||
if permanent:
|
if permanent:
|
||||||
self.permanent = permanent
|
self.permanent = permanent
|
||||||
@@ -189,7 +189,7 @@ class SessionInterface(QuartSessionInterface):
|
|||||||
session_id = self._get_signer(app).sign(want_bytes(session.sid))
|
session_id = self._get_signer(app).sign(want_bytes(session.sid))
|
||||||
else:
|
else:
|
||||||
session_id = session.sid
|
session_id = session.sid
|
||||||
response.set_cookie(cname, session_id,
|
response.set_cookie(cname, session_id.decode('utf-8'),
|
||||||
expires=expires, httponly=httponly,
|
expires=expires, httponly=httponly,
|
||||||
domain=domain, path=path, secure=secure, samesite=samesite)
|
domain=domain, path=path, secure=secure, samesite=samesite)
|
||||||
|
|
||||||
|
|||||||
@@ -19,12 +19,12 @@ with open('README.md') as f:
|
|||||||
|
|
||||||
|
|
||||||
INSTALL_REQUIRES = [
|
INSTALL_REQUIRES = [
|
||||||
"Quart>=0.10.0"
|
"Quart>=0.19.0"
|
||||||
]
|
]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='Quart-Session',
|
name='Quart-Session',
|
||||||
version='2.1.0',
|
version='3.0.1',
|
||||||
url='https://github.com/kroketio/quart-session',
|
url='https://github.com/kroketio/quart-session',
|
||||||
license='BSD',
|
license='BSD',
|
||||||
author='Kroket Ltd.',
|
author='Kroket Ltd.',
|
||||||
|
|||||||
Reference in New Issue
Block a user