{"id":10371,"date":"2010-09-01T15:58:48","date_gmt":"2010-09-01T15:58:48","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/inactivity-auto-sign-out-plugin\/"},"modified":"2010-09-01T18:23:39","modified_gmt":"2010-09-01T18:23:39","slug":"inactivity-auto-sign-out-plugin","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/inactivity-auto-sign-out-plugin\/","author":5870084,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.2","stable_tag":"0.2","tested":"3.0.5","requires":"","requires_php":"","requires_plugins":"","header_name":"Inactivity Auto Sign Out Plugin","header_author":"NipponMonkey","header_description":"","assets_banners_color":"","last_updated":"2010-09-01 18:23:39","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/inactivity-auto-sign-out-plugin\/","header_author_uri":"http:\/\/www.englishpubpool.co.uk","rating":0,"author_block_rating":0,"active_installs":10,"downloads":5280,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[754,9839,2107,8895,9570],"plugin_category":[38,44],"plugin_contributors":[87737],"plugin_business_model":[],"class_list":["post-10371","plugin","type-plugin","status-publish","hentry","plugin_tags-auto","plugin_tags-inactivity","plugin_tags-out","plugin_tags-sign","plugin_tags-signout","plugin_category-authentication","plugin_category-discussion-and-community","plugin_contributors-nipponmonkey","plugin_committers-nipponmonkey"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/inactivity-auto-sign-out-plugin.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin automatically logs a user out after a certain period of time of inactivity.\nIt creates new meta data for each WP user and checks that the user hasn't been inactive for too long.\nIf the user has been inactive for too long, then the user is automatically logged out and redirected to a URL of your choice.\nIt tracks the users activity in both the main site and admin area.<\/p>\n\n<p>You can set the maximum inactivity time and redirect URL by changing the defined constants in the plugin's PHP page - no admin menus are available yet see FAQs.<\/p>\n\n<p>It's only a single PHP page, so it's easy to alter to work however you'd like it to work.<\/p>\n\n<p>It works with BuddyPress too.<\/p>\n\n<p>Let me know if you find a better way of doing this, and I'll update the plugin.<\/p>\n\n<h3>Installation Bug<\/h3>\n\n<p>[FIXED!] Currently, when you activate the plugin, you are automatically logged out!<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin's folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>That's it! You can test it is working correctly by changing the \nMM_INACTIVITY_AUTO_LOG_OUT_MAX_INACTIVITY_TIME definition to a few seconds and seeing if you\nget automatically logged out or not.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I change the inactivity time period?<\/dt>\n<dd><p>Change this code in the plugin's main php file. Set the time period to whatever you like.\nIt's in seconds, so 3x60x60 is equal to 3 hours of inactivity.<\/p>\n\n<pre><code>define('MM_INACTIVITY_AUTO_LOG_OUT_MAX_INACTIVITY_TIME', 3*60*60);\n<\/code><\/pre><\/dd>\n<dt>How do I set the redirect URL on auto log out?<\/dt>\n<dd><p>You can change this definition to any URL you like. The default is site_url(), which is your home page.\nYou could set it to:<\/p>\n\n<pre><code>define('MM_INACTIVITY_AUTO_LOG_OUT_REDIRECT_URL', site_url());\n\ndefine('MM_INACTIVITY_AUTO_LOG_OUT_REDIRECT_URL', 'http:\/\/www.example.com');\n\ndefine('MM_INACTIVITY_AUTO_LOG_OUT_REDIRECT_URL', site_url() . '\/auto-logged-out.html');\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.2<\/h4>\n\n<ul>\n<li>Added an activation call to stop you from being logged out when you first activate the plugin!<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>The first version - design for simple installation!<\/li>\n<\/ul>\n\n<h4>0.0<\/h4>\n\n<ul>\n<li>This version never actually existed!<\/li>\n<\/ul>","raw_excerpt":"This plugin automatically logs out the user after a period of inactivity. The time period can be configured and it works with BuddyPress.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/10371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=10371"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nipponmonkey"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=10371"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=10371"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=10371"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=10371"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=10371"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=10371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}