如何在asp.net应用程序中将会话数据保存到Oracle 10g R 2 [英] How to save Session Data to Oracle 10g R 2 in an asp.net application

查看:127
本文介绍了如何在asp.net应用程序中将会话数据保存到Oracle 10g R 2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在创建一个将在基础结构上运行的Web应用程序,该基础结构将使用许多Web服务器,Web Garden和负载均衡器.

由于应用程序正在使用Sessions,并且我们的应用程序正在使用Oracle作为数据库,因此我们希望使用数据库来保存Session数据.但是,我正在努力寻找有关如何使用Oracle做到这一点的好例子.

我注意到Oracle提供了以下类:Oracle.Web.SessionState.OracleSessionStateStore,但是我不确定在隐藏代码"中需要做什么,以及如果需要在数据库中创建任何表,该怎么办.

Hi
I am creating a web application that will be running on an infrastructure which will utilise a number of web servers, web gardens and a load balancer.

As the application is using Sessions, and that our application is using Oracle as the database, we would like to use the database to save the Session data. However, I am struggling to find any good examples on how to do this with Oracle.

I note that Oracle provides the following class: Oracle.Web.SessionState.OracleSessionStateStore, but I am unsure what I need to do in the Code Behind and what if any tables do I need to create in the database.

Can anyone help me, please?

推荐答案

您需要创建一个自定义会话状态存储提供程序.

在此处查看有关操作方法的详细信息:实现会话状态存储提供程序 [ ^ ]
You need to create a custom session state store provider.

Look here for the details of how to do it: Implementing a Session-State Store Provider[^]


这篇关于如何在asp.net应用程序中将会话数据保存到Oracle 10g R 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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