Session state ?

W

WJ

My web.config hosts an encrypted MS/SQL Database Connection String. Now I am
also planning to store session states to the same SQL/Server box. However,
the following settings will force me to expose my DB connection string:

<sessionState mode="SQLServer"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20" />

Is there a way to instruct session state management to use encrypted
connection instead of that defined in "sqlConnectionString" setting ?

Thanks,

John
 
F

F

Says somewhere in MSDN docs that you need to encrypt the connection string,
paste the encrypted string into web.config. In your app, the class that
reads the conn string will need to decrypt it.

There's an example somewhere in the docs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top