Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does the default ASP.NET Forms Authentication Cookie have a leading period in it's default name => ".ASPXAUTH"

the default ASP.NET Forms Authentication cookie sets it's name as ".ASPXAUTH". Notice the first character is a period? Is there a particular reason for this? Like, does this have an impact on domain names or subdomains for the target domain.

Or is it purely some random thing an MS dev person came up with (maybe to help out the ordering of the cookies, when they were debugging or something .. as text with periods prolly get listed before other strings)?

like image 765
Pure.Krome Avatar asked Mar 21 '11 04:03

Pure.Krome


People also ask

What is the default timeout period of authentication cookie in asp net?

The amount of time in minutes after which the authentication expires. The default value is 30 minutes.

What is .aspxauth cookie?

The ASPXAUTH cookie is used to determine if a user is authenticated. As far as the location of the cookie, that depends on your browser. If you are using Firefox you can view the cookie by clicking on Tools -> Options -> Privacy. Then scroll down to the domain and expand it to see the cookie and its value.


1 Answers

The cookie in the same is completely optional and simply reduces the likelihood that you'll overwrite a different cookie that might be set by your code. The two-dot requirement is related exclusively to the domain name.

like image 55
Anonymous Coward Avatar answered Oct 19 '22 22:10

Anonymous Coward