|
-
Oct 3rd, 2002, 10:54 AM
#1
Thread Starter
Lively Member
How do you get rid of session ID in ASP.NET URLs?
I am developing a Website using ASP.NET and noticed that the session ID always shows up in the URL as in the following example:
http://localhost/Website/(d4asqa6wfsqdhmacnjbgbd55)/abc.aspx
How can I make it so that the URL would not include the session ID? The URL should then appear like:
http://localhost/Website/abc.aspx
-
Oct 3rd, 2002, 12:41 PM
#2
Hyperactive Member
It looks like session state is set to use querystring. This can be casued by cookieless=true being set in the web.config file. Look for the following in your web.config:-
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="true" timeout="20" />
and change cookieless to false.
-
Oct 3rd, 2002, 01:06 PM
#3
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|