Results 1 to 3 of 3

Thread: How do you get rid of session ID in ASP.NET URLs?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Posts
    122

    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

  2. #2
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    Dublin, Ireland
    Posts
    262
    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.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Posts
    122

    Thumbs up

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width