In ASP.NET, I'm a bit confused about role of cookies in session state. Whats is the difference between normal session state and cookieless session state?
If you specify cookieless="true" then: ASP.NET maintains cookieless session state by automatically inserting a unique session ID into the page's URL.
Session cookies allow websites to remember users within a website when they move between web pages. These cookies tell the server what pages to show the user so the user doesn't have to remember where they left off or start navigating the site all over again. Therefore, without session cookies, websites have no memory.
ASP.NET session state enables you to store and retrieve values for a user as the user navigates ASP.NET pages in a Web application. HTTP is a stateless protocol. This means that a Web server treats each HTTP request for a page as an independent request.
Normal session state involves providing a cookie. The cookie contains a session identifier which is used by the website to match visitors up with their respective session values.
Cookieless session state uses the same principles, but doesn't use cookies to pass the session identifier around. Normally, this is passed as a parameter on the querystring.
e.g.
http://www.somewebsite.com/page.aspx?sid=jrkwojeqrojq3op349023231234r23rf2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With