Session not available across multiple servers in "InProc" mode

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.
 
W

Winista

Ask your network admin to make changes in load banalncer/router to make a
user's connection session stick to one server. This way user's call will end
up on same server untill borwser session is closed.
 
G

Guest

Thanks for ur reply, But I cannot do that since this would affect all other
applications running on the server. Is there any other way like changing the
web.config so that this change affects only my appln.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top