DSatishchandra commited on
Commit
a69087c
·
verified ·
1 Parent(s): ed29e49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -16,11 +16,14 @@ print("Salesforce connection established.")
16
  app.secret_key = os.getenv("SECRET_KEY", "sSSjyhInIsUohKpG8sHzty2q") # Replace with a secure key
17
 
18
  # Set session cookie policies
 
 
19
  app.config["SESSION_COOKIE_PATH"] = "/" # Available across all routes
20
- app.config["SESSION_COOKIE_DOMAIN"] = None # Let the browser determine the domain
21
- app.config["SESSION_COOKIE_SECURE"] = False # Set to True if HTTPS
22
- app.config["SESSION_COOKIE_HTTPONLY"] = True # Prevent JavaScript access
23
- app.config["SESSION_PERMANENT"] = False # Do not use permanent sessions
 
24
  Session(app)
25
 
26
  # Ensure secure session handling for environments like Hugging Face
 
16
  app.secret_key = os.getenv("SECRET_KEY", "sSSjyhInIsUohKpG8sHzty2q") # Replace with a secure key
17
 
18
  # Set session cookie policies
19
+ app.config["SESSION_TYPE"] = "filesystem"
20
+ app.config["SESSION_COOKIE_NAME"] = "biryanihub_session"
21
  app.config["SESSION_COOKIE_PATH"] = "/" # Available across all routes
22
+ app.config["SESSION_COOKIE_DOMAIN"] = None # Browser determines the domain
23
+ app.config["SESSION_COOKIE_SECURE"] = False # Set to True if using HTTPS
24
+ app.config["SESSION_COOKIE_HTTPONLY"] = True # Prevent JS access to the cookie
25
+ app.config["SESSION_PERMANENT"] = False
26
+
27
  Session(app)
28
 
29
  # Ensure secure session handling for environments like Hugging Face