Getting rid of the session id in address line
-
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.
Do you have: cookieless="true" in your web.config file? (Session State section) Unless you especially want this, try setting it to "false".
-
Do you have: cookieless="true" in your web.config file? (Session State section) Unless you especially want this, try setting it to "false".
-
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
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