Solved

Session timeouts using forms authentication

Posted on 2006-11-14
5
627 Views
Last Modified: 2013-11-24
We have a customer using CRM in a hosted environment, setup to use forms authentication.  They want their login to remain valid for one hour, but it currently times out right around 20 minutes.  We've set everything we can find in terms of timeouts, but nothing has changed this.  So far, this is what we have configured for timeouts:

* Website in IIS
**Connection timeout: 3600 seconds, HTTP Keep-alives enabled
**Running under ASP.NET 2.0.50727
**ASP.NET configuration: State Management: Session timeout set to 60 minutes (for main site, and Reports & ReportServer under Locations)
**Global ASP.NET configuration: State management: Session timeout set to 60 minutes

*CRMAppPool in IIS
**Recycle worker processes: 1740 minutes
**Shutdown worker processes after being idle: 1500 minutes

The cookie that users get when logging in is set to expire at the end of their session, so it doesn't seem to be a cookie expiration issue.  We've looked through CRM and haven't found anything relating to timeouts.  Any help is appreciated.
0
Comment
Question by:up2speed
  • 2
5 Comments
 
LVL 23

Expert Comment

by:rama_krishna580
ID: 17998491
Hi,

The session Timeout is a sliding expiration time, meaning whatever your page access session state, the expiration time will be moved forward. Note that as long as a page has NOT disabled session state, it will access the session automatically when requested.

One of the things that causes the session to expire is if the bin folder of the project is opened. So first please make sure that doesent happen. Also if the project solution on the server is build even that breaks the session.

Also you can check out these links:
http://forums.devx.com/showthread.php?threadid=99428
http://www.dotnetspider.com/Technology/QA/ViewQuestion.aspx?QuestionId=17
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/ASP_DOT_NET/Q_21084438.html

R.K
0
 

Author Comment

by:up2speed
ID: 18028313
Thanks for the reply.  Unfortunately, it doesn't help.  This is a 3rd party application, not something I wrote.  I don't need info on accessing the session state in an application; I need info on fixing MS CRM's buggy session state timeouts.  As I stated above, all session timeouts have been changed to 60 minutes, but it still times out after 20.
0
 

Author Comment

by:up2speed
ID: 18045947
We've figured this problem out.  The setting is actually stored in the registry on the web server.  The key is HKLM\Software\Microsoft\MSCRM\SessionExpirationMinutes, and is the number of minutes the session can be inactive before it expires.  There is also a list of other registry settings at http://msdn2.microsoft.com/en-us/library/aa683650.aspx
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 18077389
PAQd, 500 points refunded.

DarthMod
CS Moderator
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Note: You must have administrative privileges in order to create/edit Roles. Salesforce.com (http://www.salesforce.com/) (SFDC) is a cloud-based customer relationship management (CRM) system. It is a database most commonly used by sales and marke…
Salesforce.com is a cloud-based customer relationship management (CRM) system. In this article, you will learn how to add and map custom lead and contact fields to your Salesforce instance.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now