{"id":22491864,"url":"https://github.com/travishorn/jquery-sessiontimeout","last_synced_at":"2025-10-25T02:30:43.163Z","repository":{"id":2372829,"uuid":"3337434","full_name":"travishorn/jquery-sessionTimeout","owner":"travishorn","description":"After a set amount of time, a dialog is shown to the user with the option to either log out now, or stay connected. If log out now is selected, the page is redirected to a logout URL. If stay connected is selected, a keep-alive URL is requested through AJAX. If no options is selected after another set amount of time, the page is automatically redirected to a timeout URL.","archived":false,"fork":false,"pushed_at":"2020-04-07T23:03:46.000Z","size":28,"stargazers_count":52,"open_issues_count":6,"forks_count":71,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-14T11:56:23.640Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://travishorn.github.com/jquery-sessionTimeout","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/travishorn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-02-02T18:29:19.000Z","updated_at":"2023-08-17T17:52:20.000Z","dependencies_parsed_at":"2022-08-24T18:10:38.610Z","dependency_job_id":null,"html_url":"https://github.com/travishorn/jquery-sessionTimeout","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travishorn%2Fjquery-sessionTimeout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travishorn%2Fjquery-sessionTimeout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travishorn%2Fjquery-sessionTimeout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travishorn%2Fjquery-sessionTimeout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/travishorn","download_url":"https://codeload.github.com/travishorn/jquery-sessionTimeout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238059009,"owners_count":19409607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-12-06T18:11:58.654Z","updated_at":"2025-10-25T02:30:42.777Z","avatar_url":"https://github.com/travishorn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sessionTimeout\n[![Build Status](https://api.travis-ci.org/travishorn/jquery-sessionTimeout.png)](https://travis-ci.org/travishorn/jquery-sessionTimeout)\n\n---\n\n## ⚠️ NOTICE\n\nThis is an older version. The new version is a complete re-write with no dependencies. See\n[the new version here](https://github.com/travishorn/session-timeout).\n\n---\n\n## Description\nAfter a set amount of time, a dialog is shown to the user with the option to either log out now, or stay connected. If log out now is selected, the page is redirected to a logout URL. If stay connected is selected, a keep-alive URL is requested through AJAX. If no options is selected after another set amount of time, the page is automatically redirected to a timeout URL.\n\n## Usage\n1. Include jQuery\n2. Include jQuery UI (for dialog)\n3. Include jquery.sessionTimeout.js\n4. Call `$.sessionTimeout();` after document ready\n\n## Options\n**message**\u003cbr\u003e\nText shown to user in dialog after warning period.\nDefault: 'Your session is about to expire.'\n\n**keepAliveUrl**\u003cbr\u003e\nURL to call through AJAX to keep session alive. This resource should do something innocuous that would keep the session alive, which will depend on your server-side platform.\u003cbr\u003e\nDefault: '/keep-alive'\n\n**keepAliveAjaxRequestType**\u003cbr\u003e\nHow should we make the call to the keep-alive url? (GET/POST/PUT)\u003cbr\u003e\nDefault: 'POST'\n\n**redirUrl**\u003cbr\u003e\nURL to take browser to if no action is take after warning period.\u003cbr\u003e\nDefault: '/timed-out'\n\n**logoutUrl**\u003cbr\u003e\nURL to take browser to if user clicks \"Log Out Now\".\u003cbr\u003e\nDefault: '/log-out'\n\n**warnAfter**\u003cbr\u003e\nTime in milliseconds after page is opened until warning dialog is opened.\u003cbr\u003e\nDefault: 900000 (15 minutes)\n\n**redirAfter**\u003cbr\u003e\nTime in milliseconds after page is opened until browser is redirected to redirUrl.\u003cbr\u003e\nDefault: 1200000 (20 minutes)\n\n**appendTime**\u003cbr\u003e\nIf true, appends the current time stamp to the Keep Alive url to prevent caching issues\u003cbr\u003e\nDefault: true\n\n## Links\n* [Online Demo](http://codepen.io/anon/pen/qEzNpd)\n* [Screenshots](https://sites.google.com/site/tpopsjqueryplugins/sessiontimeout/screenshots)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravishorn%2Fjquery-sessiontimeout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftravishorn%2Fjquery-sessiontimeout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravishorn%2Fjquery-sessiontimeout/lists"}