{ "info": { "author": "Ilya Semenov", "author_email": "ilya@semenov.co", "bugtrack_url": null, "classifiers": [], "description": "django-everlasting-sessions\n===========================\n\nThis Django middleware prevents user sessions from expiration.\n\n\nProblem\n=======\n\nWhen using ``django.contrib.sessions.middleware.SessionMiddleware``, Django only saves the session cookie when a session is modified. On a typical site that only happens when a user logs in. In two weeks this session cookie expires and the user is prompted to login again, even if he's been actively using the site.\n\n\nSolution\n========\n\n**django-everlasting-sessions** provides a middleware that will update session cookies once in a while (every day by default), provided there is some activity from the user.\n\n\nInstallation\n============\n\n::\n\n\tpip install django-everlasting-sessions\n\n\nUsage\n=====\n\nAdd the middleware to ``settings.py``:\n\n.. code:: python\n\n\tMIDDLEWARE_CLASSES = [\n\t\t...\n\t\t'django.contrib.sessions.middleware.SessionMiddleware',\n\t\t'django_everlasting_sessions.UpdateSessionMiddleware', # Must go after SessionMiddleware\n\t\t...\n\t]\n\n\nThe rest will happen automatically.\n\n\nOptions\n=======\n\nThe following default is used which you can override in ``settings.py``:\n\n.. code:: python\n\n\tSESSION_COOKIE_REFRESH = 86400 # Interval in seconds.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/IlyaSemenov/django-everlasting-sessions", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-everlasting-sessions", "package_url": "https://pypi.org/project/django-everlasting-sessions/", "platform": "any", "project_url": "https://pypi.org/project/django-everlasting-sessions/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/IlyaSemenov/django-everlasting-sessions" }, "release_url": "https://pypi.org/project/django-everlasting-sessions/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "Django middleware that prevents user sessions from expiration.", "version": "0.0.4" }, "last_serial": 2439227, "releases": { "0.0.4": [ { "comment_text": "", "digests": { "md5": "cc357e5368e9879e9665bcd7dd828edd", "sha256": "0a6b91c960a4a872e85ad78e179a6b19b60de1193c6474177e2b10d17aa251c5" }, "downloads": -1, "filename": "django-everlasting-sessions-0.0.4.tar.gz", "has_sig": false, "md5_digest": "cc357e5368e9879e9665bcd7dd828edd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1323, "upload_time": "2015-04-01T15:33:20", "url": "https://files.pythonhosted.org/packages/7a/1d/4c358cbafe66c4806902aba0d279703a75dd77368eb72ebac1090bd1cf0d/django-everlasting-sessions-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cc357e5368e9879e9665bcd7dd828edd", "sha256": "0a6b91c960a4a872e85ad78e179a6b19b60de1193c6474177e2b10d17aa251c5" }, "downloads": -1, "filename": "django-everlasting-sessions-0.0.4.tar.gz", "has_sig": false, "md5_digest": "cc357e5368e9879e9665bcd7dd828edd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1323, "upload_time": "2015-04-01T15:33:20", "url": "https://files.pythonhosted.org/packages/7a/1d/4c358cbafe66c4806902aba0d279703a75dd77368eb72ebac1090bd1cf0d/django-everlasting-sessions-0.0.4.tar.gz" } ] }