change method of session key retrival
This commit is contained in:
parent
e1441af9a3
commit
8773236047
@ -9,7 +9,7 @@ class NGINXConfigurator:
|
||||
@classmethod
|
||||
def refresh_config(cls, sessions):
|
||||
"""
|
||||
Expects sessions in form of list of (uid, port, sessionid) entries.
|
||||
Expects sessions in form of tuple of (uid, port, sessionid) entries.
|
||||
"""
|
||||
config = cls._get_config(sessions)
|
||||
with open(cls._config_path, 'w') as F:
|
||||
|
@ -25,7 +25,7 @@ def profile_start_up(sender, user, request, **kwargs):
|
||||
# Create session
|
||||
session = Session()
|
||||
session.user = user
|
||||
session.sessionid = request.COOKIES.get('sessionid')
|
||||
session.sessionid = request.session.session_key
|
||||
# TODO metoda wybierania portów
|
||||
port = 6969
|
||||
session.port = port
|
||||
|
Loading…
Reference in New Issue
Block a user