DISQUS

Eddie Awad’s Blog: How to track user sessions in ColdFusion

  • I Rz · 2 years ago

    Does not work. Shows only current user, not all users in CFMX 7.02 on IIS.

  • Eddie Awad · 2 years ago

    It works for me. I also have CFMX 7.02 on IIS.

  • chris · 1 year ago
    This is a great script. One question. How would I trigger something to happen when the individual users session variable expires? For instance when the session expires I update a field in a databse to set the loggedin status to 0?

    Any ideas on how I could do that?
  • Eddie Awad · 1 year ago
    Thinking out loud, you can use the same logic in sessionReport.cfm. But instead of creating a report, you update your database. You move the code to Application.cfm or Application.cfc so that it runs before each page.