• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

exposing SessionTimeOut and time since last activity

New Here ,
Feb 12, 2008 Feb 12, 2008

Copy link to clipboard

Copied

I'd like to run a backup routine when there is nobody active in our application. I have an cfm applet that will do this, looking for live sessions and looping every 60 seconds. We have SessionTimeOut set for 2 hours. If users log out, everything is clean, but if they close their browsers without logging out, the applet that is testing for live sessions keeps their session alive.

I can see the login Date/Time in the Session, but not the time since last activity. Is Time Since Last Activity exposed anywhere?

thanx,

Steve Shapiro
University of Oregon
TOPICS
Advanced techniques

Views

240

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Feb 12, 2008 Feb 12, 2008

Copy link to clipboard

Copied

LATEST
You might consider using the coldfusion.runtime.SessionTracker. It should give a more reliable count of active sessions. Though if you are using CF8 it may not be accessible if access to internal components has been disabled.

Another possibility might be to create a scheduled task that would run when the application is likely to be inactive. You could disable logins during that time and display a message that the application is unavailable due to maintenance and will be available again at xyz time.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation