Skip to content

Commit 4838a5b

Browse files
committed
Configurações de Sessão #103
1 parent edc441e commit 4838a5b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

suggestclasses/settings.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@
3333
ALLOWED_HOSTS = ['localhost', '127.0.0.1', 'testserver']
3434
DOMAINS_WHITELIST = ALLOWED_HOSTS
3535

36-
SESSION_COOKIE_AGE = 15 * 60 # 15 minutos
36+
SESSION_COOKIE_AGE = 60 * 60 * 12 # 12 horas
3737
SESSION_COOKIE_SECURE = True
38+
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
39+
SESSION_COOKIE_PATH = '/core'
3840

3941
# Redirect to home URL after login (Default redirects to /accounts/profile/)
4042
LOGIN_REDIRECT_URL = '/core'

0 commit comments

Comments
 (0)