javascript - $ajax webservice failing on webfarm scenario -


i working on asp.net web form project. in particular scenario want set session values when user check/uncheck checkboxes in javascript. in javascript session not accessible developed web service , gives call web service method , web method going set values session. here js web service call.

$.ajax({ async: false, url: baseurl + '/' + "webservices/extrainfowebservice.asmx/mywebmethod", data: { hdnvalue: $("[id$='hdnccsarray']").val() }, success: gett });

this webservice call works on development machine having single iis server fails on production environment multiple iis boxes. observed , found webservice call not working on ie browser only. has suggestion on please let me know.

thanks in advance!!!

if running in web farm means cannot use default session store mode (inproc) because different nodes of farm not able synchronize session values. need use out-of-process session mode. there 2 available:

  • stateserver
  • sqlserver

you can read more different session state modes in this msdn article.

or better: refactor code doesn't rely on session @ all. find bad design have web service not stateless.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -