https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/django/contrib/sessions/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/django/contrib/sessions/__pycache__/middleware.cpython-310.pyc
o

3�a�
�@spddlZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZddl
mZGd	d
�d
e�ZdS)�N)�
import_module)�settings)�UpdateError)�SessionInterrupted)�patch_vary_headers)�MiddlewareMixin)�	http_datecs.eZdZd�fdd�	Zdd�Zdd�Z�ZS)	�SessionMiddlewareNcs"t��|�ttj�}|j|_dS�N)�super�__init__rr�SESSION_ENGINE�SessionStore)�self�get_response�engine��	__class__��D/usr/lib/python3/dist-packages/django/contrib/sessions/middleware.pyrs
zSessionMiddleware.__init__cCs|j�tj�}|�|�|_dSr
)�COOKIES�getr�SESSION_COOKIE_NAMEr�session)r�request�session_keyrrr�process_requestsz!SessionMiddleware.process_requestc	Cs$z|jj}|jj}|j��}Wnty|YSwtj|jvr7|r7|jtjtj	tj
tjd�t|d�|S|r>t|d�|sCtj
r�|s�|j��rOd}d}n|j��}t��|}t|�}|jdkr�z|j��Wntyutd��w|jtj|jj||tj
tj	tjp�dtjp�dtjd�	|S)z�
        If request.session was modified, or if the configuration is to save the
        session every time, save the changes and set a session cookie or delete
        the session cookie if the session has been emptied.
        )�path�domain�samesite)�CookieNi�z�The request's session was deleted before the request completed. The user may have logged out in a concurrent request, for example.)�max_age�expiresrr�secure�httponlyr)r�accessed�modified�is_empty�AttributeErrorrrr�
delete_cookie�SESSION_COOKIE_PATH�SESSION_COOKIE_DOMAIN�SESSION_COOKIE_SAMESITEr�SESSION_SAVE_EVERY_REQUEST�get_expire_at_browser_close�get_expiry_age�timer�status_code�saverr�
set_cookier�SESSION_COOKIE_SECURE�SESSION_COOKIE_HTTPONLY)	rr�responser%r&�emptyr!r"�expires_timerrr�process_responsesV��
 �



���	z"SessionMiddleware.process_responser
)�__name__�
__module__�__qualname__rrr9�
__classcell__rrrrr	sr	)r0�	importlibr�django.confr�%django.contrib.sessions.backends.baser�"django.contrib.sessions.exceptionsr�django.utils.cacher�django.utils.deprecationr�django.utils.httprr	rrrr�<module>s

https://t.me/RX1948 - 2025