This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description


utsessions allow the features of timed and unique sessions for an user account in Django.

What does it do ?

utsessions is a middleware that makes all opened user sessions unique.

When an user session is opened, the user account can’t be reused before a certain amount of time. After this time, if the user account is reused, the first session is closed and a second one is opened.

A session can also be automaticaly closed after a choosen time.

This kind of behavior is useful for websites providing access to data by unique user account.


utsessions was written to be easily :

  • Installed in your projects, by simply registering the middleware.
  • Extended thanks to his design in object: each component can be removed or reused.
  • Configured, with the file which allows different behaviors.


Download the latest packaged version at and unpack it.

You can also perform a Subversion checkout to get the latest code.

svn checkout django-ut-sessions

Inside the package use this command line to install the package into your PYTHONPATH.

$> python install

Project installation

Now simply add this following line into your MIDDLEWARE_CLASSES section.


It must be after the SessionMiddleware and AuthentifcationMiddleware like this :



If you want to define the period of a session before being logged out, set a value in seconds to SESSION_LIMIT_SECONDS in your

A session can be released for another user before a certain amount of time, set to default at 300 seconds. To change this value define SESSION_TOKEN_LIMIT_SECONDS. If set to 0, no lock will be created.


Put utsessions into your INSTALLED_APPS section and run :

$> python test utsessions
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
utsessions-0.2dev_r6-py2.4.egg (9.2 kB) Copy SHA256 Checksum SHA256 2.4 Egg Dec 29, 2008
utsessions-0.2dev-r6.tar.gz (4.1 kB) Copy SHA256 Checksum SHA256 Source Dec 29, 2008

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting