473,385 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Using SQLServer Session State without connection string in web.config

Hello all. I have a problem that is probably failry easy to solve, but
I don't know where to look. (Or, really, what to look for.)

My customer has a tool (written in .NET) that encrypts strings. They
require us to use the tool to encrypt the connection strings to the
"real" database. We have had no problem with that.

However, they also want to use SQL Server to manage session state, and
would really like the ConnectionString to the SQLServer DB that
manages session state to be encrypted/managed thru the same library,
and NOT stored in the web.config. The application stores the encrypted
string somewhere else.

What I'm trying to ascertain is if there is something that I can hook
to, possibly writing a custom library, so that instead of IIS looking
up the Connection String in the web.config file, it would ask my
library to give it the connection string.

As you can no doubt tell, I'm not really sure what I'm asking.
Hopefully, I've given enough information to point me in the right
direction.

Thanks again,
Chris
Nov 18 '05 #1
1 2616
Chris,

Would use of the aspnet_setreg utility (see
http://support.microsoft.com/default...b;en-us;821616) be
sufficient? This would allow for use of an encrypted connection string,
albeit not using their preferred library.

Unfortunately, the existing session state loading mechanisms seem to allow
for no other modifiers that would permit specifying an alternate decryptor,
so it would seem there's no way to get your client's desired behaviour
without subclassing the HttpApplication to use an alternate IHttpModule for
session state. That would probably be much more work than it's worth, given
that aspnet_setreg provides a reasonable solution if the main goal is
encryption, rather than encryption with a particular library.

HTH,
Nicole
"Chris Snyder" <ba********@hotmail.com> wrote in message
news:a1**************************@posting.google.c om...
Hello all. I have a problem that is probably failry easy to solve, but
I don't know where to look. (Or, really, what to look for.)

My customer has a tool (written in .NET) that encrypts strings. They
require us to use the tool to encrypt the connection strings to the
"real" database. We have had no problem with that.

However, they also want to use SQL Server to manage session state, and
would really like the ConnectionString to the SQLServer DB that
manages session state to be encrypted/managed thru the same library,
and NOT stored in the web.config. The application stores the encrypted
string somewhere else.

What I'm trying to ascertain is if there is something that I can hook
to, possibly writing a custom library, so that instead of IIS looking
up the Connection String in the web.config file, it would ask my
library to give it the connection string.

As you can no doubt tell, I'm not really sure what I'm asking.
Hopefully, I've given enough information to point me in the right
direction.

Thanks again,
Chris

Nov 18 '05 #2

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

Similar topics

1
by: quique | last post by:
Hi all, I want to know the advantages and disadvantages of the methods of maintain session state, obviously if i choose sqlserver is the most robust but the less performace.. If wan't to...
6
by: A | last post by:
Hi, does anybody know how (if possible) to change the database name for the session database (which is ASPState)? My problem is that our website/sqlserverdb is hosted by an isp, and we are...
9
by: Greg Linwood | last post by:
I'm having difficulty understanding Session state in ASP.Net. It's almost embarrassing asking this as I've been using ASP since it was first released & it really shouldn't be this hard to use -...
4
by: John Q. Smith | last post by:
I'm trying to find out some of the details behind OOP state management with SQL Server. For instance - how long does the session object live on any server? Is it created and destoyed with each...
12
by: John M | last post by:
Hello, On Microsoft Visual Studio .NET 2003, I want to use some global elements, that can be used in each one of my pages. i.e I put a oleDBConnection on global.asax.vb How can I use it...
0
by: Al Fatykhov | last post by:
Using MABLE logic engine with existing .NET applications. MABLE web services provide an interface to MABLE business objects and logic. Let us review some technical details of the MABLE web...
1
by: booksnore | last post by:
I have an application where a have a single admin database and multiple customer databases containing the customer's warehouse data. In the admin database I hold a user table and also a client...
2
by: JoeSep | last post by:
Hi! Is it correct/safe to define a connection pool in the string "sqlConnectionString" of the "sessionState" section of Web.config? - The application is developed using AspNet 1.1 in a Windows...
8
by: Andrew Teece | last post by:
Hope someone can help. We are trying to deploy an ASP.Net 2.0 application to a 3-node webfarm. The application uses the ReportViewer control in local mode, hence we need session state. Because we...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.