Forms Auth cookie question

C

Chris Huddle

This may be a dumb question, but does anyone know where the Forms
Authentication cookie is kept on an XP box? It definitely isn't kept with
all of the other cookies in "Documents and Settings/Username/Cookies". I
know Microsoft recommends setting the path as "/" in the Web.config, but
where is that pointing to? Also, shouldn't the cookie be named what you
have it set to in the "Authentication" section of Web.config ? Can anyone
clarify this for me? Thanks!
 
M

mortb

The cookie is definatley located in the Documents and
Settings/Username/Cookies folder
(except if your browser isn't IE then it is located somwhere else)
But cookies lead a strange life :)
If you delete a cookie while surfing it is still set -- you'll have to close
down your browser and delete it to be sure it isn't seet.
The cookie file is typically named <yourUserName>@<yourServer>[x] where the
name yourServer is dependent on which namne you used to access your server
(it may be localhost, it may be the IP number or it may be the computername)
and x if present is a number.
The name of the cookie is kept _within_ the file -- if your site sets
several cookies with different names they are all kept within the same file
as the file is one per visited server. If you open a file you'll be able to
see the cookie names.

Hope this helps

cheers,
mortb
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top