Switch between Client and Session Variables

Many developers often ask whether client variables or session variables are better. The answer to this question (as with many others) is "It depends". A common suggestion is to create some kind of wrapper for these scopes to allow easy switching.

The SessionMgr component provides this functionality. It will allow you to specify Client or Session scope when you intialize it. After that, you can have SessionMgr handle all of your Client/Session data. If you ever need to change which scope you use, just change the scope passed in and re-initialize SessionMgr - no need to change any other code.

SessionMgr will ensure proper locking and handle complex variables in Client scope, so you don't have to worry about those issues in your code.

[More]

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
I'm excited!
# Posted By Phillip Senn | 12/7/05 7:24 PM
Phil's excited, and that makes me a little nervous. What happens when you start to talk about execution scripting and XML? Shudder...
# Posted By Mike from Dubai | 5/25/06 5:10 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.8.001.