• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 20. Working with Sessions > Working with onSessionStart and onSessionEn...

Working with onSessionStart and onSessionEnd

Earlier in the chapter, we talked about how session variable can be enabled in the Application.cfc file and how handy they are for tracking information about your users. Another feature you may find handy is the ability to run code at both the beginning and end of a session. There are many ways this could be useful. Let's say you want to note when a user first entered your system. You could do this easily enough with:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint