Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

How to detect that a user session is terminated?

(0) ShareShare
ReportReport
Posted on by 10

Back in NAV, codeunit 1, we could subscribe to the event that tells that the user session is about to be closed, and put code in the subscriber to do some housekeeping, e.g. if your app uses records where the PK is SessionID you could delete them from a given app-related control table.

Now that in Dynamics 365 BC we don't have codeunit 1 anymore, what resource (e.g. codeunit event) could we subscribe to do a similar work?

Many thanks!

  • J. Leite Profile Picture
    10 on at
    RE: How to detect that a user session is terminated?

    Great, many thanks!

  • Verified answer
    I Gusti Made Ari Profile Picture
    3,594 on at
    RE: How to detect that a user session is terminated?

    Check the  codeunit 40 LogInManagement , subscribe to event OnAfterLogInEnd

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
YUN ZHU Profile Picture

YUN ZHU 505 Super User 2025 Season 1

#2
Mansi Soni Profile Picture

Mansi Soni 400

#3
Sagar Dangar, MCP Profile Picture

Sagar Dangar, MCP 384

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans