开发者

Do callbacks lengthen/refresh session? ASP.NET

开发者 https://www.devze.com 2023-03-28 22:56 出处:网络
So, I have a page that uses callbacks. When I attach VS10 debugger to IIS and set breakpoint in Page_Load() handler, app stops on breakpoint each 30 seconds, which is of course correct. Yet when sessi

So, I have a page that uses callbacks. When I attach VS10 debugger to IIS and set breakpoint in Page_Load() handler, app stops on breakpoint each 30 seconds, which is of course correct. Yet when session timeouts (for testing set timeout value to 5mins) every next callback results with error about: "Response.Redirect()" and callback.

Question is same as title. Also if they don't,is there any way to enlong/refresh session without refreshing page, which results in loss of data in controls. Also how would storing all controls values in cache minute before timeout and then, after refresh rewriting these values to refreshed controls, work? (control data -> cache -> refresh -> cache data -> controls).

Edit: "Response.Redirect cannot be called in a P开发者_Python百科age callback." This is error message I get.


Yes, callbacks reset the sessionState timer back to 0.

0

精彩评论

暂无评论...
验证码 换一张
取 消