quinone / password-manager

Password management application developed as a group project for college.
0 stars 0 forks source link

Session management keeps logging me out #27

Open quinone opened 1 month ago

quinone commented 1 month ago

Not sure if it is fully broken or just that the expiry is actually working. If it is that the expiry is working can we change the default to something longer for the development side.

Pitoche commented 3 weeks ago

This seems to be related to this piece of code I am not sure why is duplicated. I changed it to 5 mins (as per code below) in my lab and it seems to work but I have not committed this or pushed to the branch yet :

 app.secret_key = "super secret key"  # secret key for captcha
    app.config["PERMANENT_SESSION_LIFETIME"] = timedelta(minutes=5)

    # Define session timeout duration in seconds
    SESSION_TIMEOUT = 300

    # Set the session lifetime
    app.config["PERMANENT_SESSION_LIFETIME"] = timedelta(minutes=5)