|
@@ -71,13 +71,9 @@ def application(env, start_response):
|
71
|
71
|
#to log messages with client infos
|
72
|
72
|
client = WebUiClient(env['REMOTE_ADDR'], env['HTTP_USER_AGENT'], None)
|
73
|
73
|
session_token = load_cookie(request)
|
74
|
|
- if session_token is not None:
|
|
74
|
+ if session_token is not None and len(session_token) > 0:
|
75
|
75
|
WebUiClient.restore_session(session_token)
|
76
|
|
- #next line is for testing purpose
|
77
|
|
- print("ACCESS DATAS : ", WebUiClient['last_request'])
|
78
|
76
|
session_token = None
|
79
|
|
- #next line is for testing purpose
|
80
|
|
- WebUiClient['last_request'] = time.time()
|
81
|
77
|
|
82
|
78
|
try:
|
83
|
79
|
controller = get_controller(request)
|