Skip to content

Commit

Permalink
Set cookie max_age
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Oct 4, 2024
1 parent 7825c72 commit 71e5dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/dashboard/src/routes/login_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def initialize_session(request: Request, box: str = Query(...), end_redirect_uri
}
)
# Set cookie_id with session_id
response.set_cookie(key="cookie_id", value=session_id)
response.set_cookie(key="cookie_id", value=session_id, max_age=120)
logging.info("Generated new cookie_id and saved to database")
return response

Expand Down

0 comments on commit 71e5dcc

Please sign in to comment.