Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how i can hide session id from url

i am using a link

when link is open url shows userid (session data)

now i want that it will not show session id in url

i will set cokkieless=true but still it show session id in url
Posted
Updated 20-Oct-10 20:17pm
v2

In continuation to above answer,

If you have set cookieless to false in your web.config file and it is still showing the sessionid in url, it means the browser has cookies disabled. Check the browser setting and enable the browser to accept cookies.

There is no way to hide the sessionid if cookies are disabled for a browser.

Hope this clears your doubt.
 
Share this answer
 
Comments
Monjurul Habib 27-Apr-11 15:14pm    
That would be my answer, too.This is the only reason I vote 5 :-)
Ankur\m/ 28-Apr-11 0:09am    
Thanks again!
if cookieless set to true, that tells asp.net that it cant
save cookies on any of the user's pc, and so it stores the session id in the
url.
if you set it to false, the session id will be removed from the url and
placed inside a cookie on the users pc.
so set cookieless set to false , to hide session id from url
 
Share this answer
 
Comments
sharmarun 21-Oct-10 2:13am    
thanx for ur reply i allready set cookieless=false in web config but still it show session id
Brij 21-Oct-10 2:20am    
Pls share your web.config setting for the same
Ankita1391 14-Mar-15 2:59am    
Worked for me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900