c# - I am calling an ASMX web service from javascript and it is preveting my session from timing out -


edit 2:

i have background process running on server side based on schedule or end user's request, , need show image users keep him notified process running, or take out image when process finished.

edit 2 finished

i calling asmx web service located in website hosted on iis javascript , preveting session timing out.

why call client webservice prevent session on website timeout ?

is there way prevent ?

please tell me if need more clarity in question or more details.

edit 1:

based on information , link provided @rene147 in answer below googling, tried following on side of webservice :

[webmethod(enablesession=false)] public string getsummary() {                httpcontext.current.response.cookies.remove(system.web.security.formsauthentication.formscookiename);     return "something"; } 

but turns out httpcontext.current.response.cookies empty.

any hints ?

by default forms authentication uses sliding expiration. means each time make request server cookies expiration reset (with caveats).

to disable sliding expiration set "slidingexpiration" in web.config false. taken sliding expiration

<authentication mode="forms">   <forms loginurl="member_login.aspx"     name=".aspxformsauth"     cookieless="usecookies"     requiressl="true"      slidingexpiration="false" /> </authentication> 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -