If I were faced with a similar issue, I would code up something along these
lines:
http://aspalliance.com/810_Implement...n_Pattern_in_C
and then not code against the Session object directly, but rather through
this library.
Then you could subclass as necessary, or override values as needed.
...
StateManager stateManager =StateManager.Instance;
stateManager.Add("jk","Joydip",State.Session);
if(stateManager.Get("jk",State.Session)!=null) //<<<you
can edit the code here to bring back what you want.
"ADN" <vc******@gmail.comwrote in message
news:e2**********************************@r66g2000 hsg.googlegroups.com...
Hi, I am creating a custom HTTPModule to intercept the request of when
the user is attempting to retrieve a session variable. For instance,
if I set a session variable in my code like so:
session["myString"] = "Hello World";
When the request for that session variable "myString" is attempted to
be retrieved, I would like to intercept that request like so:
if (Request is for session variable "myString")
{
//send this string instead
}
Is it even possible to intercept the request of a session variable in
a custom HTTPModule?