会话会降低性能吗? [英] does session degrade the performance?

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

问题描述

我将数据集保留在会话中.而且我想当用户关闭页面时将会话设置为null.我还有很多页面和其他会话,所以我只想取消分配此特定会话的值.
预先感谢.

I have kept dataset in session. And i want when user close the page then session set to null. I have lot of pages and other sessions also so i want to deallocate the value of this particular session only.
Thanx in advance.

推荐答案



您可以通过
删除特定的会话
Hi,

You can remove a particular session by

Session.Remove(your session object name);




关于您的问题

这取决于您要在会话中放置多少数据.

切勿在会话中放置大量数据,因为它会消耗服务器资源(这是服务器端状态管理技术).


希望这会有所帮助.




Regarding your question

It depends on how much data you are placing in session.

Never place large amount of data in session as it consumes server resources(being server side state management technique).


Hope this helps.


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

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