Skip to content

SecureCookieSession.__init__() got an unexpected keyword argument '_permanent' #17

@butchewing

Description

@butchewing

I'm using Quart 0.19.3 and quart-session 2.1.0. After starting the following minimal sample

from quart import Quart, session
from quart_session import Session

app = Quart(__name__)
app.config['SESSION_TYPE'] = 'redis'
app.config['SESSION_URI'] = 'redis://127.0.0.1:6379'
Session(app)


@app.route('/')
async def hello():
    session["foo"] = "bar"
    return "session key 'foo' set"


@app.route('/foo')
async def foo():
    return session.get("foo", "session key 'foo' not found")

app.run()

I'm getting the following error:

"quart_session/sessions.py", line 34, in __init__
    super(ServerSideSession, self).__init__(**initial or {})
TypeError: SecureCookieSession.__init__() got an unexpected keyword argument '_permanent'

This is related to #15.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions