Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Sorry, your session expired. Please refresh the page to continue.

Posted on by Microsoft Employee

Hi Team

We have recently migrated Business Central to Cloud. It has two Web server in Backend.

1.We started with ALB for Load Balancer, However the First Problem we encountered was Authentication which was going on Loop and Client was presented with constantly being asked to re-authenticate(Reason being When a connection is made NTLM denies the connection and asks it to authentication), Which took us to  Layer 4 “network” load-balancers Since Windows Authentication over the Layer 7 “application” load balancer is not possible.

2. After moving to NLB, Authentication Problem Resolved, However after sometime we encountered the session timeout started popping up intermittently while browsing the application.

"Sorry Your Session expired, Please refresh the page to continue"

3. Finally we moved to ELB , Which resolved both issues (Authentication & Session), At least so far we haven't heard any session timeout.

If anyone has encountered such issues. Please let me know what was the fix.

Also we looked at 3 things:
  1. "Active Sessions" table in database
  2. UAT Web server 1 IIS logs
  3. UAT Web server 2 IIS logs
We also discovered the following:Sequence of events:
  1. My session was established via Web server 1.
  2. My calls went through web server 1 for about 2 minutes and 40 seconds of operations/navigation.
  3. After that, my calls suddenly switched over to web server 2.... and at that point, the session expiry message appeared!

 

Regards

Partha Patnaik

Categories:
  • Sorry, your session expired. Please refresh the page to continue.
    Hello, 
    could you tell me what is ELB? 
    I guess LB is load balancer but what is E?
     
  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Sorry, your session expired. Please refresh the page to continue.

    Hello,

    I assume with cloud you mean you have a few VM's running on Azure configured in a load balanced scenario. To troubleshoot, you need to perform some network traces and look at the logs. For Dynamics 365 Business Central you can start looking at the application event logs related to what happens with the session.

    There may also be some timeout settings that are related here that increases the 2 min interval.

    Thanks

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans