473,725 Members | 2,169 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

custom session management using Oracle in web garden scenario

Hello,

I am trying to write a custom session manager in ASP.NET 2.0 using
oracle as the backend. I want to know how the session expires in web
garden and we are using NLB (a session can be served by the multiple
web servers)

Following are few points:

1. How to cleanup session data on Oracle table (on which event need to
cleanup) also how does session expire works in webgarden (is it
possible that all the web server have session active for a particular
client)
2. Can we use Caching to save session data (don't want to hit database
server on every page to load the session data - just a idea)?
3. We are using NLB
4. Custom session management inheriting "SessionStateSt oreProviderBase "
class with ASP.NET 2.0/Oracle

I was not able to find any article, which answers these issues. If
anyone can answer these

Thanks in Advance
Sam

Sep 12 '06 #1
2 2668
if you use an out of process session manager then there is no expire event,
you just use a timer. You need to know the session cookie timeout, then
purge sessions older than that.

in the microsft version, they update a timestamp everytime a session is
used. then then schedule a sqlagent job (every few minutes) to delete any
session old enough to expire. you can write simular code.

-- bruce (sqlwork.com)

<sa********@gma il.comwrote in message
news:11******** **************@ e63g2000cwd.goo glegroups.com.. .
Hello,

I am trying to write a custom session manager in ASP.NET 2.0 using
oracle as the backend. I want to know how the session expires in web
garden and we are using NLB (a session can be served by the multiple
web servers)

Following are few points:

1. How to cleanup session data on Oracle table (on which event need to
cleanup) also how does session expire works in webgarden (is it
possible that all the web server have session active for a particular
client)
2. Can we use Caching to save session data (don't want to hit database
server on every page to load the session data - just a idea)?
3. We are using NLB
4. Custom session management inheriting "SessionStateSt oreProviderBase "
class with ASP.NET 2.0/Oracle

I was not able to find any article, which answers these issues. If
anyone can answer these

Thanks in Advance
Sam

Sep 12 '06 #2
Bruce,

Thanks for response,

Well we are not using SQL server here.

When the Abandon method is called for a particular session, the data
for that session is deleted from the data store using the RemoveItem
method; otherwise the data will remain in the session data store to
serve future requests for the session. will this make sence in this
scenario

Thanks
Sam

bruce barker (sqlwork.com) wrote:
if you use an out of process session manager then there is no expire event,
you just use a timer. You need to know the session cookie timeout, then
purge sessions older than that.

in the microsft version, they update a timestamp everytime a session is
used. then then schedule a sqlagent job (every few minutes) to delete any
session old enough to expire. you can write simular code.

-- bruce (sqlwork.com)

<sa********@gma il.comwrote in message
news:11******** **************@ e63g2000cwd.goo glegroups.com.. .
Hello,

I am trying to write a custom session manager in ASP.NET 2.0 using
oracle as the backend. I want to know how the session expires in web
garden and we are using NLB (a session can be served by the multiple
web servers)

Following are few points:

1. How to cleanup session data on Oracle table (on which event need to
cleanup) also how does session expire works in webgarden (is it
possible that all the web server have session active for a particular
client)
2. Can we use Caching to save session data (don't want to hit database
server on every page to load the session data - just a idea)?
3. We are using NLB
4. Custom session management inheriting "SessionStateSt oreProviderBase "
class with ASP.NET 2.0/Oracle

I was not able to find any article, which answers these issues. If
anyone can answer these

Thanks in Advance
Sam
Sep 12 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2849
by: Microsoft | last post by:
I am using Session variables in my ASP application. I have tested the application on a Win2k professional and it works fine. When the same web app is installed on a win2k advanced server from the client browser when the app is accessed the session variable returns null inspite of a value being already set. I have checked the IIS enable session state settings. When i use the server machine as client and access the app as localhost then...
9
2906
by: grw | last post by:
Im trying to find why my hosted server won't maintain session state. Its not a web farm (not load balanced), its all the same server An application requires a session to be set and then recalled (like you do :) However, since the server software was upgraded from IIS 5 to 6, the working code no longer works. (ie - login with session variables but get logged out immediately the page changes)
7
7221
by: Billy Jacobs | last post by:
I am having a problem with my session variable being set to Null for no apparent reason. I am declaring it like the following when the user logs in. dim objUserInfo as new clsUserInfo 'Set some properties objUserInfo.UserName = txtUserName.text.trim objUserInfo...
7
2311
by: Adam Short | last post by:
I'm having all sorts of problems with Sessions, I've been using them for years with out a hitch, all of a sudden the last 6 - 12 months since getting our new Win2003 server it's all gone shakey!!! Our development server started life as an NT4 machine and has been simply upgraded from one operating system to the next, it is now a cross, NT4 Server, Win2000 Server, Win2003 server. All development sites work fine and under heavy stress. ...
1
1248
by: Tom L | last post by:
I'm pretty new to .net stuff, but not new to programming (lots of vb, sql, cold fusion, and some asp).. I have a "middle layer" object model I created, that has all my business rules and database access for an order entry system, starting with the Order object, and other basic child items, like LineItems and PAyments under that. This is being used in the vb.net front-end for normal users in the company, but I'd like to use this for the web...
20
2148
by: Shiv Kumar | last post by:
Is there a known problem or caveat with ASP.NET sessions on a multi-processor machine? Are sesions bound to a CPU or are they application wide? My machine.config is the default and my web.config file has no session specific entries. On my development machine XP I have no problem but on the production server W2K3/dual proc I have issues. -- Shiv R. Kumar http://www.matlus.com
2
6821
by: Steve Foo | last post by:
I have been posting this question in google group, EE, and Oracle OTN forum and still no cannot find a suitable solution for it. I have contacted Singapore Microsoft support regarding the problem .Unfortunately they are not able to help me and eventually direct me here i'm not 100% sure if this problem is due to ODP.net provider or asp.net IIS setting Hopefully Microsoft Experts here can help me up. Thx Introduction...
8
8412
by: karahan celikel | last post by:
I realized that when SqlServer mode is used for session management Session_End event is not fired in global.asax. What can I do if I want to do something when a user's session end? Thanks
6
2226
by: Shimon Sim | last post by:
Hi I am working on application that need to hold custom user information - Last and first name, email, some other domain related information. I used to create Base class for all my pages. The base class would have CurrentUser property that would hold customer class in session and that was fine for all my situations. Now ASP.NET 2.0 came and we have Profile property for pages that could be extended with configuration to have custom...
0
8888
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9176
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8097
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3221
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.