Ok, as previously stated I rushed out my last post. I had a bug in my code that resulted in a subtle problem.
Just out of curiosity, raise your hand if you tried to use my code (ok, put it down again... I can't really see you, but people around you can, and they're staring).
Let see how many hands was that?? None I bet. If you had , you would discover that... it doesn't work! There is a more heinous error in the code than previously stated.
Let's recap. I give you 4 routines. Each of the routines let's you pass a key in and it handles the adding of the session id to the key to get a value out of the application cache. Did anyone notice that in the “writeVarToContext” I have this line of code in it “removeKeyFromContext(key + Session.SessionID).” Does this code strike anyone as odd?
Wait, I have it! Doesn't the removeKeyFromContext routine already handle the concat'ing of the Session ID? So you add it to the key twice? Wouldn't this cause an error?
Yep, it sure does... editing the post again (sigh)
BTW, I like to make sure that everyone knows that I'm not infallible (hence the reason for this post).
| posted on Monday, July 26, 2004 2:49 PM