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
Technology Tips and News
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
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
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.
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
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>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
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
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
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