更改.resx文件运行时会导致会话过期 [英] change .resx file runtime causes session to expire

查看:78
本文介绍了更改.resx文件运行时会导致会话过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建网页由网站管理员动态地改变资源文件。但现在,当用户更改文件RESX的价值,它正确保存,但它会导致会话过期。我该如何克服这个问题?有没有人有关于它的想法,我试图寻找,但才发现,当我们改变.resx文件再次编译网站,并导致应用程序池重新启动。

I have created page to change the resource file dynamically by the web site admin. but now when user changes the value in resx file, it saves correctly but it causes the session to expire. How can i overcome this? Does anyone has idea about it, i tried to search but only to find that when we change .resx file it again compiles the website and causes app pool restarts.

项目是网站,它在4.0

Project is website and its in 4.0

推荐答案

当您更改RESX文件,工作进程被回收。如果您在使用过程中的会话状态,该会话都将丢失。可能的变通:使用了进程外会话存储或存储虚拟目录之外的资源(和自己管理更新他们)

When you change the resx file, the worker process is recycled. If you are using in-process session state, the sessions are lost. Possible work-arounds: use out-of-process session storage, or store your resources outside of the virtual directory (and manage updating them yourself).

参考: http://weblogs.asp.net/owscott/archive/ 2006 / 02.aspx

这篇关于更改.resx文件运行时会导致会话过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆