MCPcopy
hub / github.com/django/django / acycle_key

Method acycle_key

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

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

(self)

Source from the content-addressed store, hash-verified

440 self.delete(key)
441
442 async def acycle_key(self):
443 """
444 Create a new session key, while retaining the current session data.
445 """
446 data = await self._aget_session()
447 key = self.session_key
448 await self.acreate()
449 self._session_cache = data
450 if key:
451 await self.adelete(key)
452
453 # Methods that child classes must implement.
454

Callers 5

aloginFunction · 0.45
aget_userFunction · 0.45
test_cycle_asyncMethod · 0.45

Calls 3

_aget_sessionMethod · 0.95
acreateMethod · 0.95
adeleteMethod · 0.95

Tested by 2

test_cycle_asyncMethod · 0.36