asp.net 4中的会话变量 [英] session variable in asp.net 4

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

问题描述

我在IIS服务器(在win2003下)的虚拟目录中有更多的Web应用程序(asp.net 4).它们在oracle 11g数据库中都有自己的架构和帐户.登录后,所有用户都有一些会话变量(例如用户名,shema名称等),并且可能同时有来自多个模式的许多用户.我必须知道在给定的时间将用户输入系统!我如何在运行时获取这些信息.如何从服务器询问?

I have got more web applications (asp.net 4) in own virtual directories of IIS server (under win2003). All of them have own schema and account in oracle 11g database. After login all users have some session variables (like username,shema name ...etc) and there may be many users from more schemas at same time. I have to know at the given minute wich users are entered in the system! How can i get these information in runtime. How can I ask it from the server?

推荐答案



我找到了一篇文章将您的会话信息存储在Oracle数据库中.

与Oracle,SQL兼容的ASP.NET自定义会话存储提供程序 [ ^ ]

在数据库中进行会话后,就可以从数据库中读取它.

尽管我从未尝试过,但它看起来很有希望.

希望它也对您有用,
谢谢
-Amit Gajjar
Hi,

I found one Article to store your session information in Oracle database.

ASP.NET Custom Session Store Provider compatible with Oracle, SQL[^]

Once you have session in your database then you can read it from database.

Although i have never tried it but it looks promising.

Hope it will also works for you,
Thanks
-Amit Gajjar


您也可以使用已登录的当前用户数"的逻辑来查找.

请参阅:如何显示编号的在线用户访问者 [
You can also use the logic of ''number of current users that are logged in'' for finding it out.

Refer: How to show number of online users visitors[^]

You can maintain a list of current logged in users and use it whenever you want to see who all are online.


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

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