会话结束 [英] Session End

查看:60
本文介绍了会话结束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我的应用程序中有4个Web项目.我只是想知道所有项目的会话是否会一直保留到注销之前,或者在我退出该特定项目时会被清除.

请帮帮我.:confused:

Hi all,

I have 4 web projects in my application. I just wanted to know whether the session of all the projects will remain till the logout or it will be cleared as and when I move out of that particular project.

Please please help me out.:confused:

推荐答案

不,您将无法在项目之间共享Session变量,因为每个变量都将在不同的appdomain中运行.但是,为什么不将数据(所需信息)保存在数据库中,然后再进行检索.
No, you would not be able to share Session variables across the projects as each would be running in different appdomain. However, why don''t you save the data (required information) in database and then retrieve it.


会话对于连接和网站是唯一的.如果您移出当前网站/webapp范围,则在关闭浏览器时会话将终止.

会话也可以通过不活动自动终止.
The sessions are unique to the connection and website. If you move out of the current website / webapp scope, the session will terminate when you close the browser.

The session can also terminate automatically through inactivity.


这篇关于会话结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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