{"id":19300663,"url":"https://github.com/fantomas42/django-ut-sessions","last_synced_at":"2026-06-15T03:33:06.262Z","repository":{"id":28793091,"uuid":"32315964","full_name":"Fantomas42/django-ut-sessions","owner":"Fantomas42","description":"Automatically exported from code.google.com/p/django-ut-sessions","archived":false,"fork":false,"pushed_at":"2015-03-16T10:01:14.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T14:07:32.565Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fantomas42.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-16T09:58:35.000Z","updated_at":"2015-03-16T09:59:23.000Z","dependencies_parsed_at":"2022-09-01T22:41:51.553Z","dependency_job_id":null,"html_url":"https://github.com/Fantomas42/django-ut-sessions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Fantomas42/django-ut-sessions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fantomas42%2Fdjango-ut-sessions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fantomas42%2Fdjango-ut-sessions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fantomas42%2Fdjango-ut-sessions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fantomas42%2Fdjango-ut-sessions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fantomas42","download_url":"https://codeload.github.com/Fantomas42/django-ut-sessions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fantomas42%2Fdjango-ut-sessions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34346867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T23:15:27.604Z","updated_at":"2026-06-15T03:33:06.242Z","avatar_url":"https://github.com/Fantomas42.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Introduction\n============\n\n*utsessions* allow the features of timed and unique sessions for an user\naccount in Django.\n\nWhat does it do ?\n=================\n\n*utsessions* is a middleware that makes all opened user sessions unique.\n\nWhen an user session is opened, the user account can't be reused\nbefore a certain amount of time. After this time, if the user account\nis reused, the first session is closed and a second one is opened.\n\nA session can also be automaticaly closed after a choosen time.\n\nThis kind of behavior is useful for websites providing access to data\nby unique user account.\n\nPhilosophy\n==========\n\n*utsessions* was written to be easily :\n\n * Installed in your projects, by simply registering the middleware.\n * Extended thanks to his design in object: each component can be removed or reused.\n * Configured, with the settings.py file which allows different behaviors.\n\nInstallation\n============\n\nDownload the latest packaged version at http://code.google.com/p/django-ut-sessions/ \nand unpack it.\n\nYou can also perform a Subversion checkout to get the latest code. ::\n\n  svn checkout http://django-ut-sessions.googlecode.com/svn/trunk/ django-ut-sessions\n\nInside the package use this command line to install the package into\nyour PYTHONPATH. ::\n\n $\u003e python setup.py install\n\nProject installation\n====================\n\nNow simply add this following line into your *MIDDLEWARE_CLASSES* section. ::\n\n  utsessions.middleware.UTSessionMiddleware\n\nIt must be after the SessionMiddleware and AuthentifcationMiddleware\nlike this : ::\n\n  MIDDLEWARE_CLASSES = (\n    'django.middleware.common.CommonMiddleware',\n    'django.contrib.sessions.middleware.SessionMiddleware',\n    'django.contrib.auth.middleware.AuthenticationMiddleware',\n    'utsessions.middleware.UTSessionMiddleware',\n  )\n\nSettings\n========\n\nIf you want to define the period of a session before being logged out,\nset a value in seconds to *SESSION_LIMIT_SECONDS* in your settings.py\n\nA session can be released for another user before a certain amount of\ntime, set to default at 300 seconds. To change this value define\n*SESSION_TOKEN_LIMIT_SECONDS*. If set to 0, no lock will be created.\n\nTests\n=====\n\nPut utsessions into your *INSTALLED_APPS* section and run : ::\n\n  $\u003e python manage.py test utsessions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantomas42%2Fdjango-ut-sessions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffantomas42%2Fdjango-ut-sessions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantomas42%2Fdjango-ut-sessions/lists"}