Update app.py
Browse files
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 |
-
#
|
| 28 |
-
app.config["
|
| 29 |
-
|
| 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
|