Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Update app.py
Browse files
    	
        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  | 
|  | |
| 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
         | 
