Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Getting rid of the session id in address line

Getting rid of the session id in address line

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    snir_ya
    wrote on last edited by
    #1

    Hi Guys, I have the sesstion id concatenated to the address line when i load a my asp.net application pages: http://Analyzer2/**(S21g12siel2gh3o20bhm3dp45)**/Menus/ANL\_MainMenu.aspx Does anybody know how to get rid of it? Cheers.

    F 1 Reply Last reply
    0
    • S snir_ya

      Hi Guys, I have the sesstion id concatenated to the address line when i load a my asp.net application pages: http://Analyzer2/**(S21g12siel2gh3o20bhm3dp45)**/Menus/ANL\_MainMenu.aspx Does anybody know how to get rid of it? Cheers.

      F Offline
      F Offline
      Fred_Smith
      wrote on last edited by
      #2

      Do you have: cookieless="true" in your web.config file? (Session State section) Unless you especially want this, try setting it to "false".

      S 1 Reply Last reply
      0
      • F Fred_Smith

        Do you have: cookieless="true" in your web.config file? (Session State section) Unless you especially want this, try setting it to "false".

        S Offline
        S Offline
        snir_ya
        wrote on last edited by
        #3

        Great. It worked. But when i set cookieless to false does that mean that my web applicaiton is using cookies ('cause i've got a direct order from my client not to use cookies)? -- modified at 10:58 Tuesday 18th September, 2007

        F 1 Reply Last reply
        0
        • S snir_ya

          Great. It worked. But when i set cookieless to false does that mean that my web applicaiton is using cookies ('cause i've got a direct order from my client not to use cookies)? -- modified at 10:58 Tuesday 18th September, 2007

          F Offline
          F Offline
          Fred_Smith
          wrote on last edited by
          #4

          well, (assuming you aren't using/setting any cookies of your own) it will still set a so-called per-session cookie to hold the session-id that you were seeing in the url. Such a cookie is not written to the client hard disk but only held in memory and is destroyed when the user next shuts his/her browser down. This may or may not satisfy your client - if not, you will have to return to the cookieless state and put up with the session-id in the url as before. Chances are your client won't know about per-session cookies, so you could always try not mentioning it! :-) Otherwise, explain to them that the server has to have some way of knowing which page request is coming from which user, and the randomly generated session-id that it passess back and forth with each request is how it does so. Fred

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups