https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /usr/lib64/python2.7/site-packages/django/contrib/sessions/backends/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/site-packages/django/contrib/sessions/backends/signed_cookies.pyc
�
r�\c@sJddlmZddlmZddlmZdefd��YZdS(i����(tsettings(tsigning(tSessionBasetSessionStorecBs_eZd�Zd�Zed�Zdd�Zdd�Zd�Z	d�Z
ed��ZRS(	cCsWy,tj|jd|jdtjdd�SWn$tjtfk
rR|j�nXiS(s�
        We load the data from the key itself instead of fetching from
        some external data store. Opposite of _get_session_key(),
        raises BadSignature if signature fails.
        t
serializertmax_agetsalts/django.contrib.sessions.backends.signed_cookies(	Rtloadstsession_keyRRtSESSION_COOKIE_AGEtBadSignaturet
ValueErrortcreate(tself((sQ/tmp/pip-install-XxeQeY/django/django/contrib/sessions/backends/signed_cookies.pytload	s		cCs
t|_dS(s�
        To create a new key, we simply make sure that the modified flag is set
        so that the cookie is set on the client for the current request.
        N(tTruetmodified(R
((sQ/tmp/pip-install-XxeQeY/django/django/contrib/sessions/backends/signed_cookies.pyRscCs|j�|_t|_dS(s�
        To save, we 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.
        N(t_get_session_keyt_session_keyRR(R
tmust_create((sQ/tmp/pip-install-XxeQeY/django/django/contrib/sessions/backends/signed_cookies.pytsave scCstS(s�
        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.
        (tFalse(R
R((sQ/tmp/pip-install-XxeQeY/django/django/contrib/sessions/backends/signed_cookies.pytexists)scCsd|_i|_t|_dS(s�
        To delete, we 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(Rt_session_cacheRR(R
R((sQ/tmp/pip-install-XxeQeY/django/django/contrib/sessions/backends/signed_cookies.pytdelete1s		cCs|j�dS(s�
        Keeps the same data but with a new key.  To do this, we just have to
        call ``save()`` and it will automatically save a cookie with a new key
        at the end of the request.
        N(R(R
((sQ/tmp/pip-install-XxeQeY/django/django/contrib/sessions/backends/signed_cookies.pyt	cycle_key;scCs4t|di�}tj|dtddd|j�S(s�
        Most session backends don't need to override this method, but we do,
        because instead of generating a random string, we want to actually
        generate a secure url-safe Base64-encoded string of data as our
        session key.
        RtcompressRs/django.contrib.sessions.backends.signed_cookiesR(tgetattrRtdumpsRR(R
t
session_cache((sQ/tmp/pip-install-XxeQeY/django/django/contrib/sessions/backends/signed_cookies.pyRCscCsdS(N((tcls((sQ/tmp/pip-install-XxeQeY/django/django/contrib/sessions/backends/signed_cookies.pyt
clear_expiredOsN(
t__name__t
__module__RRRRtNoneRRRRtclassmethodR (((sQ/tmp/pip-install-XxeQeY/django/django/contrib/sessions/backends/signed_cookies.pyRs			
		N(tdjango.confRtdjango.coreRt%django.contrib.sessions.backends.baseRR(((sQ/tmp/pip-install-XxeQeY/django/django/contrib/sessions/backends/signed_cookies.pyt<module>s

https://t.me/AnonymousX5 - 2025