M
Mehdi
Hi,
In order to keep all my properties and objects that I use in the session in
one place, I have created a class "SessionCore.cs" and on Session_Start I
create a new instance if it as follow:
Session["Core"] = new SessionCore(Session.SessionID);
The somewhere within the application for example when I need to get stored
CustomerID I use the following:
((CoreSession)Session["Core"]).CustomerID
which woks fine as long as in my Web.config I use mode="InProc"
However If I use mode="StateServer" Session_Start in Global.asax will into
infinite loop!
Does anyone know why and what the solution is please?
Thanks for your time in advance.
Kind Regards
Mehdi
In order to keep all my properties and objects that I use in the session in
one place, I have created a class "SessionCore.cs" and on Session_Start I
create a new instance if it as follow:
Session["Core"] = new SessionCore(Session.SessionID);
The somewhere within the application for example when I need to get stored
CustomerID I use the following:
((CoreSession)Session["Core"]).CustomerID
which woks fine as long as in my Web.config I use mode="InProc"
However If I use mode="StateServer" Session_Start in Global.asax will into
infinite loop!
Does anyone know why and what the solution is please?
Thanks for your time in advance.
Kind Regards
Mehdi