| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/django/contrib/sessions/__pycache__/ |
Upload File : |
�
�|�e� � �n � d Z ddlmZ ddlmZ G d� dej � � Z G d� dej � � Z dS ) zn
This module allows importing AbstractBaseSession even
when django.contrib.sessions is not in INSTALLED_APPS.
� )�models)�gettext_lazyc � � e Zd Zd� Zd� ZdS )�BaseSessionManagerc �n � | j � � � } |� � � |� � S )zY
Return the given session dictionary serialized and encoded as a string.
)�model�get_session_store_class�encode)�self�session_dict�session_store_classs �F/usr/lib/python3/dist-packages/django/contrib/sessions/base_session.pyr
zBaseSessionManager.encode
s5 � � #�j�@�@�B�B��"�"�$�$�+�+�L�9�9�9� c � � | � || � |� � |� � }|r|� � � n|� � � |S �N)r r
�save�delete)r �session_keyr �expire_date�ss r r zBaseSessionManager.save sL � ��J�J�{�D�K�K��$=�$=�{�K�K��� �
�F�F�H�H�H�H�
�H�H�J�J�J��r N)�__name__�
__module__�__qualname__r
r � r r r r s2 � � � � � �:� :� :�� � � � r r c � � e Zd Z ej ed� � dd�� � Z ej ed� � � � Z ej ed� � d�� � Z
e� � Z G d� d � � Z
d
� Zed� � � Zd� Zd
S )�AbstractBaseSessionzsession key�( T)�
max_length�primary_keyzsession datazexpire date)�db_indexc �>