G
Guest
I am using session mode as "InProc"(entered in web.config). I have deployed
my ASP.NET appln. on a server which uses Load Balancer. i.e I have two
servers.
I am using session across pages.The problem I am facing is that sometimes I
find the session and sometimes not. I beleive this is happenning because of
multiple servers. Because session is created on a worker process on one
server and the second time it must be hitting the other server to fetch the
session. Hence the issue.
What is the solution ? Is it possible to acheive this with "InProc" ? Can I
make the application find the session on a particular server . i.e. I should
restrict my application to use session from the worker process from which it
started. Once the application is closed then it can hit any server.But again
should restrict sessions to that server till the application is over. I think
if I can do that then my problem can be solved with "InProc" . But how do I
do this ?
Thanks in advance.
my ASP.NET appln. on a server which uses Load Balancer. i.e I have two
servers.
I am using session across pages.The problem I am facing is that sometimes I
find the session and sometimes not. I beleive this is happenning because of
multiple servers. Because session is created on a worker process on one
server and the second time it must be hitting the other server to fetch the
session. Hence the issue.
What is the solution ? Is it possible to acheive this with "InProc" ? Can I
make the application find the session on a particular server . i.e. I should
restrict my application to use session from the worker process from which it
started. Once the application is closed then it can hit any server.But again
should restrict sessions to that server till the application is over. I think
if I can do that then my problem can be solved with "InProc" . But how do I
do this ?
Thanks in advance.