from datetime import timedelta class Config: MONGO_URI = 'mongodb://localhost:27017/mapDB' UPLOAD_FOLDER = 'uploads' SECRET_KEY = 'supersecretkey' ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif'} LOGIN_URL = '/thelogin' REMEMBER_COOKIE_DURATION = timedelta(days=7) # Adjust as needed REMEMBER_COOKIE_HTTPONLY = True REMEMBER_COOKIE_SECURE = True # Set to True if using HTTPS SESSION_COOKIE_SAMESITE = 'Lax'