Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are cookieless sessions?

Tags:

asp.net

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?

like image 597
Parag Meshram Avatar asked Feb 16 '10 13:02

Parag Meshram


People also ask

What is Cookieless true?

If you specify cookieless="true" then: ASP.NET maintains cookieless session state by automatically inserting a unique session ID into the page's URL.

How does cookie session work?

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.

What is ASP.NET session?

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.


1 Answers

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

like image 169
Paul Alan Taylor Avatar answered Oct 30 '22 21:10

Paul Alan Taylor