# Paperless NGX session isolation configuration
# This file overrides default session settings to prevent conflicts with other Django apps

import os
from paperless.settings import *

# Override session cookie name to prevent conflicts with main Django app
SESSION_COOKIE_NAME = 'paperless_sessionid'

# Also change CSRF cookie name for good measure
CSRF_COOKIE_NAME = 'paperless_csrftoken'

# Ensure cookies are scoped to avoid conflicts
SESSION_COOKIE_PATH = '/'
CSRF_COOKIE_PATH = '/'

# Different secret key salt to ensure session isolation
SESSION_COOKIE_SALT = 'paperless.sessions'