Auto Logout after idle for 20mins

Hi,

I am using sharepoint 2010. I would like to know how to enable

auto logout facility in sharepoint after the session is idle for more than 20mins

Thanks

February 8th, 2013 5:17am

Hi,

By default session time out is 20 mins in IIS. However you can also change this time in IIS (IIS-->sites-->your site-->session state.).

You can also use this script on page to redirect to singout page after 20 mins:

http://bborole.blogspot.com/2012/03/auto-log-off-after-10-min-in-sharepoint.html

Hope it could help

Free Windows Admin Tool Kit Click here and download it now
February 8th, 2013 6:01am

By default the session timeout is 20mins. But even after being idle for 20mins still my sharepoint page is active
February 8th, 2013 8:42am

Alagappan,

You can use the script in this article mentioned by Hemendra. Put that script in the master page of your SharePoint site so that it applies through out the site collection. Thanks.

Free Windows Admin Tool Kit Click here and download it now
February 8th, 2013 10:14am

Hi ,

Here is the steps to solve your problem.

Goto Central Administration -> Application Management > Manage Web application.
Select your Web application.
From Ribbon, Select "General Settings" .
Choose General Settings from it.
From "General Settings" popup choose "Web Page Security Validation" section.
Reduce the "Security validation expires" value to the duration you want.

By default its 30 minutes, that means after 30 minutes it will ask for login credentials.

Hope this will solve your problem.

Regards

February 8th, 2013 11:18am

Hi,

Which area of the master page i need to add this script?

<script type="text/javascript"> //Added for Auto LogOFF after 10 min     function Timeout(){         var t = setTimeout("RedirectToLogout()", 10*60000);     }     function RedirectToLogout(){        var path = "http://YouSite/_layouts/SignOut.aspx";        window.navigate(path);     }     </script> <script>   window.onload=Timeout; </script>

Free Windows Admin Tool Kit Click here and download it now
February 12th, 2013 10:41am

Edit your master page in designer and find below tag:

<asp:ScriptManager id="ScriptManager" runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true">
	<Scripts>
		<%--add your script here--%>
	</Scripts> 
</asp:ScriptManager>
Hope it could help

February 12th, 2013 10:54am

Hi,

I followed your instructions and attached my master page after updating. Still i dont get the signout page after idle for 2 mins

Please help me on this

Free Windows Admin Tool Kit Click here and download it now
February 13th, 2013 6:47am

Hi,

I have removed script manager and put whole script inside the <body> tag and now script is working. See belwo image for you ref:

Once you put your script in master page then checkin and publish your page in major version.

Let us know your result now

February 13th, 2013 7:59am

Thanks Hemendra Agrawal....

That one worked......

Free Windows Admin Tool Kit Click here and download it now
February 13th, 2013 8:14am

Hi Hemendra,

i know this is an old thread. bu i am facing the same issue of session timeout. 

i found that there were 3 master pages in my sharepoint site.

1. oslo.master

2. seattle.master (default)

3. v4.master

i added the code provided by you to the seattle.master page. but after adding the code my site did not open. it just opens a blank page.

i added the code to the v4.master page and made it the default master page. this time the site opened however it was fully distorted. the timeout however worked.

is there something i need to add/change so that my site looks fine.

please help

May 18th, 2015 1:21am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics