| Server IP : 118.27.122.248 / Your IP : 216.73.216.158 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib/python3.7/site-packages/paste/__pycache__/ |
Upload File : |
B
a�NG, � @ s& d Z ddlmZ ddlZddlZddlZddlZddlZddlZyddl Z W n e
k
rh ddlZ Y nX yddlm
Z
W n e
k
r� ddl
m
Z
Y nX ddlmZ ddlmZ G dd� de�ZG d d
� d
e�Zdadaejdd
�aG dd� de�ZG dd� de�Ze� Zeeeeefdd�ZdS )a�
Creates a session object in your WSGI environment.
Use like:
..code-block:: Python
environ['paste.session.factory']()
This will return a dictionary. The contents of this dictionary will
be saved to disk when the request is completed. The session will be
created when you first fetch the session dictionary, and a cookie will
be sent in that case. There's current no way to use sessions without
cookies, and there's no way to delete a session except to clear its
data.
@@: This doesn't do any locking, and may cause problems when a single
session is accessed concurrently. Also, it loads and saves the
session for each request, with no caching. Also, sessions aren't
expired.
� )�SimpleCookieN)�md5)�wsgilib)�requestc @ s e Zd Zddd�Zdd� ZdS )�SessionMiddlewareNc K s || _ || _d S )N)�application�
factory_kw)�selfr �global_confr � r �>/opt/alt/python37/lib/python3.7/site-packages/paste/session.py�__init__/ s zSessionMiddleware.__init__c sb t |f| j���|d<