在传统的ASP,我可以存储在Session对象的数据库连接? [英] In Classic asp, can I store a database connection in the Session object?

查看:157
本文介绍了在传统的ASP,我可以存储在Session对象的数据库连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以存储在Session对象的数据库连接?

Can I store a database connection in the Session object?

推荐答案

从这个链接 HTTP ://support.microsoft.com/default.aspx/kb/243543

你不应该在会话存储数据库连接。

You shouldnt store database connection in Session.

据我所知,如果你做了相同的用户必须使用相同的线程则后续ASP请求。

From what I understand, if you do then subsequent ASP requests for the same user must use the same thread.

因此​​,如果你有一个繁忙的网站它可能是'你'的线程就已经被被其他人使用,所以你将不得不等待它变得可用。

Therefore if you have a busy site its likely that 'your' thread will already be being used by someone else, so you will have to wait for it to become available.

这是很多更多的用户乘以这个了,你将得到大家等着大家别人的螺纹和不非常敏感部位。

Multiply this up by lots more users and you will get everyone waiting for everyone elses thread and a not very responsive site.

这篇关于在传统的ASP,我可以存储在Session对象的数据库连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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