ó
    ¹Rjt
  ã                   ó2   • S SK Jr  S SKJr   " S S\5      rg)é    )ÚSessionBase)Úsigningc                   óZ   • \ rS rSrS rS rSS jrSS jrSS jrS r	S	 r
\S
 5       rSrg)ÚSessionStoreé   c                 ó¸   •  [         R                  " U R                  U R                  U R	                  5       SS9$ ! [
         a    U R                  5          0 $ f = f)z�
Load the data from the key itself instead of fetching from some
external data store. Opposite of _get_session_key(), raise BadSignature
if signature fails.
ú/django.contrib.sessions.backends.signed_cookies)Ú
serializerÚmax_ageÚsalt)r   ÚloadsÚsession_keyr
   Úget_session_cookie_ageÚ	ExceptionÚcreate©Úselfs    Ú[D:\diplom_project\venv\Lib\site-packages\django/contrib/sessions/backends/signed_cookies.pyÚloadÚSessionStore.load   sX   € ð	Ü—=’=Ø× Ñ ØŸ?™?à×3Ñ3Ó5ØFñð øô ó 	ð �K‰K�MØˆ	ð		ús   ‚8; »AÁAc                 ó   • SU l         g)zm
To create a new key, set the modified flag so that the cookie is set
on the client for the current request.
TN)Úmodifiedr   s    r   r   ÚSessionStore.create   s   € ð
 ˆ�ó    c                 ó<   • U R                  5       U l        SU l        g)zš
To save, get the session key as a securely signed string and then set
the modified flag so that the cookie is set on the client for the
current request.
TN)Ú_get_session_keyÚ_session_keyr   )r   Úmust_creates     r   ÚsaveÚSessionStore.save!   s   € ð !×1Ñ1Ó3ˆÔØˆ�r   Nc                 ó   • g)z•
This method makes sense when you're talking to a shared resource, but
it doesn't matter when you're storing the information in the client's
cookie.
F© ©r   r   s     r   ÚexistsÚSessionStore.exists*   s   € ð r   c                 ó.   • SU l         0 U l        SU l        g)zŸ
To delete, clear the session key and the underlying data structure
and set the modified flag so that the cookie is set on the client for
the current request.
Ú TN)r   Ú_session_cacher   r#   s     r   ÚdeleteÚSessionStore.delete2   s   € ð ˆÔØ ˆÔØˆ�r   c                 ó$   • U R                  5         g)z†
Keep the same data but with a new key. Call save() and it will
automatically save a cookie with a new key at the end of the request.
N)r   r   s    r   Ú	cycle_keyÚSessionStore.cycle_key<   s   € ð
 	�	‰	�r   c                 óX   • [         R                  " U R                  SSU R                  S9$ )zu
Instead of generating a random string, generate a secure url-safe
base64-encoded string of data as our session key.
Tr	   )Úcompressr   r
   )r   ÚdumpsÚ_sessionr
   r   s    r   r   ÚSessionStore._get_session_keyC   s)   € ô
 �}Š}Ø�M‰MØØBØ—‘ñ	
ð 	
r   c                 ó   • g ©Nr"   )Úclss    r   Úclear_expiredÚSessionStore.clear_expiredO   s   € àr   )r(   r   r   )Fr4   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r   r   r$   r)   r,   r   Úclassmethodr6   Ú__static_attributes__r"   r   r   r   r      s9   † òò(ôôôòò

ð ñó ór   r   N)Ú%django.contrib.sessions.backends.baser   Údjango.corer   r   r"   r   r   Ú<module>r@      s   ðÝ =Ý ôL�;õ Lr   