Configure different sessionState on different subdirectory

G

Guest

I want to configure different sessionState on different subdirectory,so I
wote this code in wen.config file:
<location path="SubInProc">
<system.web>
<sessionState mode="InProc" cookieless="AutoDetect" timeout="20"/>
</system.web>
</location>
<location path="SubSQLServer">
<system.web>
<sessionState mode="SQLServer" cookieless="false" timeout="20"
sqlConnectionString="data source=MySqlServer; user
id=ASPState;password=1Gr8State" sqlCommandTimeout="20"/>
</system.web>
</location>
But it does't work.What's wrong with the code and how to configure it? thanks!
 

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

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,144
Latest member
KetoBaseReviews
Top