web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

your session in Microsoft dynamics CRM is about to expire or redirecting to login page is not working

(0) ShareShare
ReportReport
Posted on by

Hi

We recently upgraded CRM from 2011 to 2016. after configuring IFD we are not getting any message or signin page after session expire. And only after a browser refresh or if we try to open any form it is displaying a login prompt. Can any one suggest how to make the redirection to login page and why CRM is not displaying the session expire message.

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hello,

    I have exactly the same behaviour on my CRM 2016 SP1 platform in IFD mode (with WAP as reverse proxy) : no expiration message is displayed when session timeout occcurs, only intempestive authentication popups.

    After some HTTP captures, I found that authentication popup is caused by HTTP 401 responses from CRM through WAP server, which are not catched as authentication requests by WAP as they should be.

    Examples :

    viamedia-crm-ext.testcrm.local/.../DashboardWebService.asmx

    viamedia-crm-ext.testcrm.local/.../MessageBar.asmx

    And in the same time, some others HTTP requests to CRM returns HTTP 200.

    Examples :

    viamedia-crm-ext.testcrm.local/.../global.ashx

    viamedia-crm-ext.testcrm.local/.../InstalledLocales.js

    viamedia-crm-ext.testcrm.local/.../dlg_error.aspx;hresult=0x80040277

    The only solution is to refresh page with F5 : one more pop-up is displayed, and finally ADFS logon page when cancelling popup

    @Ramesh : did you find any solution to your problem ?

    If not, does anyone has ideas about this problem ? Or any clues to investigate on it ?

    Thanks in advance.

  • Suggested answer
    Maneesha Profile Picture
    5,891 on at

    have you check the server : time out / interval time period ?

  • Community Member Profile Picture
    on at

    Hello Maneesha,

    Thanks for your answer.

    I've tried to put the relying party trust timeout on ADFS to 480 minutes (the same as ADFS global Web SSO timeout), but the problem is not resolved : after 8 hours, it produces exactly the same way (no expiration message and authentication prompts).

  • Community Member Profile Picture
    on at

    I have exact the same issue after upgrading from CRM 2011 to CRM 365.

    Before we got a popup telling that the session was about to expire.

    with the new CRM, we get no warning, but all of the sudden the end user is disconnected once the session expired. very annoying obviously.

    Hope someone can shed some light wether this is a configuration issue, or a system bug.

  • Suggested answer
    sandeepc Profile Picture
    5,514 on at
  • Senth Profile Picture
    on at

    It's a code defect in CRM 365 and unfortunately Microsoft is not fixing this any time soon with a hotfix. They are planning to fix this next higher version of CRM.

    Subject: RE: [REG:117022715379811] CRM Issue - Timeout Issue - Claims based Auth with IFD Initial Response

    As of right now, your token is set to expire every 60 minutes.  Normally, there should be a silent token renewal since the SSOLifetime is set for 480 minutes, however it appears that there is a bug that is being addressed currently for this issue.  This case is now tied to this bug investigation.

     

    In the interim, you can resolve the number of times that users are prompted for credentials by increasing the token lifetime from “0” to a higher limit.  If you want the users to reauthenticate every 2 hours, change this value to 120, 4 hours – 240, 8 hours – 480, etc.  Please keep in mind that if you increase this value to 480, you must increase the ADFS property for SSOLifetime to a higher value as well, such as 540.

     

    Sent: Wednesday, March 01, 2017 11:46 AM

    Subject: RE: [REG:117022715379811] CRM Issue - Timeout Issue - Claims based Auth with IFD Initial Response

    In regards to the bug, the issue is that some users are not receiving the friendly prompt, and the silent token refresh is not occurring.  This causes users to be signed out without warning and they lose all unsaved data.  The resolution has been identified for an upcoming version of CRM as of earlier this month.  This resolution is now being backported through the lower versions of 2016 and should be released in the next set of CRM updates, however there is always the possibility that the backport takes longer due to QA testing results.

     

    This fix is scheduled to be included in the next release (9.0) and then backported to previous versions of CRM/Dynamics 365.

    RE: [REG:117060715858892] CRM Issue - Timeout Issue - Claims based Auth with IFD

    . As we discussed, the two problems you are experiencing unique issues which are caused by code defects within Dynamics CRM. Here is a summary of the two scenarios:

    • The first problem is related to the session expiry reminder; instead of receiving the login option on the form at the defined reminder time (20 minutes before expiry), you are signed out and don’t receive the option to remain signed in.
    • The second issue occurs if we have passed token expiry and the CRM window is still open; you click a link on the page or make changes and then click save, after this, CRM prompts for credentials three times. This occurs because CRM tries to load the last viewed record but it fails because the session has expired and there is no active authentication token.

  • Community Member Profile Picture
    on at

    Hello Senth,

    Many thanks for your reply, and for giving MS ticket details.

    AS I understand MS support answer, there is some hope having a fix only after Dynamics next version release.

  • KC Christensen Profile Picture
    10 on at

    Can anybody provide an update, support case, or version at which this was addressed?  Was this a CRM platform bug or an ADFS issue associated with Authentication providers?

    Unfortunately, the lack of re-AuthN is a horrible user experience that is costing development hours to fix, which just adds technical debt that isn't easily transferable between platforms or multi-tenant situations.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans