MCPcopy
hub / github.com/django/django / cycle_key

Method cycle_key

django/contrib/sessions/backends/base.py:431–440  ·  view source on GitHub ↗

Create a new session key, while retaining the current session data.

(self)

Source from the content-addressed store, hash-verified

429 self._session_key = None
430
431 def cycle_key(self):
432 """
433 Create a new session key, while retaining the current session data.
434 """
435 data = self._session
436 key = self.session_key
437 self.create()
438 self._session_cache = data
439 if key:
440 self.delete(key)
441
442 async def acycle_key(self):
443 """

Callers 5

loginFunction · 0.45
get_userFunction · 0.45
update_session_auth_hashFunction · 0.45
test_cycleMethod · 0.45

Calls 2

createMethod · 0.95
deleteMethod · 0.95

Tested by 2

test_cycleMethod · 0.36