To avoid such situation, we can use Cookieless session. To implement that you just need to set cookieless attribute to true in your session tag. Here is how you can do this:-
<system.web> <sessionState mode="InProc" cookieless="true" timeout="120" /> </system.web>
Once you have done that your URL will contain the session id, here is the snapshot of URL before and after implementing cookieless=true:-
As you can see that in the URL session id is visible.
Feel free to share your comments, Happy Codding !!!




