DSatishchandra commited on
Commit
8697d42
·
verified ·
1 Parent(s): d874cdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,9 +19,9 @@ app.secret_key = os.getenv("SECRET_KEY", "sSSjyhInIsUohKpG8sHzty2q") # Replace
19
 
20
  # Configure the session type
21
  app.config["SESSION_TYPE"] = "filesystem" # Use filesystem for session storage
22
- app.config["SESSION_COOKIE_NAME"] = "my_session" # Optional: Change the session cookie name
 
23
  app.config["SESSION_COOKIE_SAMESITE"] = "None" # Allow cross-site cookies
24
- app.config["SESSION_COOKIE_SECURE"] = True # Secure cookies over HTTPS
25
 
26
  # Initialize the session
27
  Session(app) # Correctly initialize the Session object
 
19
 
20
  # Configure the session type
21
  app.config["SESSION_TYPE"] = "filesystem" # Use filesystem for session storage
22
+ app.config["SESSION_COOKIE_NAME"] = "my_session" # Optional: Change session cookie name
23
+ app.config["SESSION_COOKIE_SECURE"] = True # Ensure cookies are sent over HTTPS
24
  app.config["SESSION_COOKIE_SAMESITE"] = "None" # Allow cross-site cookies
 
25
 
26
  # Initialize the session
27
  Session(app) # Correctly initialize the Session object