?
Solved

Session timeouts using forms authentication

Posted on 2006-11-14
5
Medium Priority
?
655 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Salesforce.com’s Console is a great tool to view activities, leads, contacts, accounts and opportunities all in one screen. It is particularly effective during call blocks and working numerous activities at a time in a quick, repetitive fashion (suc…
Let’s face it: one of the reasons your organization chose a SaaS solution (whether Microsoft Dynamics 365, Netsuite or SAP) is that it is subscription-based. The upkeep is done. Or so you think.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

770 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