nagasurendra commited on
Commit
d831144
·
verified ·
1 Parent(s): 9fefa73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -24,11 +24,9 @@ print("Salesforce connection established.")
24
  # Set the secret key to handle sessions securely
25
  app.secret_key = os.getenv("SECRET_KEY", "xEr0cwgsiatzrzaeFewYrVA1O") # Replace with a secure key
26
 
27
- # Configure the session type
28
- app.config["SESSION_TYPE"] = "filesystem" # Use filesystem for session storage
29
- #app.config["SESSION_COOKIE_NAME"] = "my_session" # Optional: Change session cookie name
30
- app.config["SESSION_COOKIE_SECURE"] = True # Ensure cookies are sent over HTTPS
31
- app.config["SESSION_COOKIE_SAMESITE"] = "None" # Allow cross-site cookies
32
 
33
  # Initialize the session
34
  Session(app) # Correctly initialize the Session object
 
24
  # Set the secret key to handle sessions securely
25
  app.secret_key = os.getenv("SECRET_KEY", "xEr0cwgsiatzrzaeFewYrVA1O") # Replace with a secure key
26
 
27
+ app.config["SESSION_TYPE"] = "filesystem" # Storing sessions in filesystem
28
+ app.config["SESSION_COOKIE_SECURE"] = True # Enabling secure cookies (ensure your app is served over HTTPS)
29
+ app.config["SESSION_COOKIE_SAMESITE"] = "None" # Cross-site cookies allowed
 
 
30
 
31
  # Initialize the session
32
  Session(app) # Correctly initialize the Session object