__get_session_id(self) bug?
Closed this issue · 1 comments
byshome commented
first call pycket on my project. eg:
from pycket.session import SessionManager
session = SessionManager(self)
session.set(verify_code_key, verify_code)
session.set(verify_code_check_times, 0)
first session.set call __create_session_id function
second session.set call __create_session_id function
so, when i get session on other page,the first session lost!
change the __create_session_id function.
def __get_session_id(self):
if hasattr(self, "session_id") and self.session_id is not None:
return self.session_id
self.session_id = self.handler.get_secure_cookie(self.SESSION_ID_NAME)
if self.session_id is None:
self.session_id = self.__create_session_id()
return self.session_id
is fine
diogobaeder commented
DISCONTINUED
This library is not maintained anymore, hence won't receive any further support.