View Single Post
  #5  
Old August 7th 10, 03:32 AM posted to microsoft.public.windowsxp.security_admin
franklin-xy
external usenet poster
 
Posts: 10
Default How to change username in cookies? e.g. [email protected]

"VanguardLH" wrote:

If you need more help, hopefully someone else joins in that will ignore
your attitude. Bye.


That's the trouble with text-only communications: you cannot see tone or
intent. I intended no attitude. I'm grateful for the insights, thanks.

The filename for a cookie is defined by the web browser and is
typically:



Exactly.

Your *local* web browser is using that naming convention.


Yes, I'm talking about my local web browser running on my PC.

See:

http://www.brenz.net/cookies/

under "About the Cookie" regarding IE's convention. Javascript can use
HttpCookie.Name to set the name of the cookie *object* to reference it
within the code but the web browser decides what filename to use for
that cookie. Obviously the web browser is a local program that can find
out under what Windows account it is running.

The username is the one assigned to your account, not the name of your
user profile's folder.


Okay, that answers one of my main questions, thanks.

You can actually change the path to your user
profile folder but the account's username remains the same.


The reverse is also true. You may easily change the user profile name
(username), and the new one will be displayed and used for login, but the
actual user profile directory will remain unchanged.

To see what
usernames are assigned to each Windows account that you have defined
(assuming you have admin rights), just run "net users" from a DOS
prompt. Or you could run "echo %username%".

To see what is the current path to the user profile folder for the
account under which you are logged under, run "echo %userprofile%".
That does NOT have to use your username as the path for your profile
folder but the default is to do so.


Right, it is the default unless it has been changed. In my case, the default
remains, as I never changed the username nor the user profile directory name.

That folder is the path to your
profile (of data files/folders). It is NOT your username for your
Windows account.

Your user profile probably has your account's username in its path (but
it may not). The name of your profile folder is NOT your username. Go
read:

http://www.cookiecentral.com/faq/
section 2.10


You answered the central question, of where the username portion of the
cookie filename is taken from. Your answer that it comes from the user
profile username makes my job easier, since that is relatively simple to
change. Changing the user profile directory or creating an entirely new
profile and then copying over the data from the old user profile directory
(and making any necessary pathname changes in certain applications and
shortcuts) would have been more work.

Thanks! And, have a good weekend.
Ads