Home All Groups Group Topic Archive Search About

remember my user name

Author
24 Mar 2005 9:35 PM
Brian Henry
I want to make a login form, but have a checkbox with a "remember user name"
option to create a cookie on their system to save their user name and place
it into the username text box when they visit the site, how to go about
implementing this? any examples out there? thanks!

Author
24 Mar 2005 9:44 PM
Michael C#
Have you checked with the ASP.NET newsgroup?  Just off the top of my head, I
would save a token value (possibly encrypted?) in the cookie and when the
user returns, pull their username out of a record, referenced by the token
value in the cookie, from a database.  I wouldn't store username or any
other settings in the cookie itself, as someone might decide to reverse
engineer it at some point...  Just my thoughts, but I'm not sure what the
best practices on that are...

Show quoteHide quote
"Brian Henry" <brianiupmsdn@newsgroups.nospam> wrote in message
news:u3gablLMFHA.1172@TK2MSFTNGP12.phx.gbl...
>I want to make a login form, but have a checkbox with a "remember user
>name" option to create a cookie on their system to save their user name and
>place it into the username text box when they visit the site, how to go
>about implementing this? any examples out there? thanks!
>
Author
24 Mar 2005 10:05 PM
Brian Henry
accidently sent this to this group, ment it to go to aspnet


Show quoteHide quote
"Michael C#" <x**@yomomma.com> wrote in message
news:eOoo%23pLMFHA.1176@TK2MSFTNGP12.phx.gbl...
> Have you checked with the ASP.NET newsgroup?  Just off the top of my head,
> I would save a token value (possibly encrypted?) in the cookie and when
> the user returns, pull their username out of a record, referenced by the
> token value in the cookie, from a database.  I wouldn't store username or
> any other settings in the cookie itself, as someone might decide to
> reverse engineer it at some point...  Just my thoughts, but I'm not sure
> what the best practices on that are...
>
> "Brian Henry" <brianiupmsdn@newsgroups.nospam> wrote in message
> news:u3gablLMFHA.1172@TK2MSFTNGP12.phx.gbl...
>>I want to make a login form, but have a checkbox with a "remember user
>>name" option to create a cookie on their system to save their user name
>>and place it into the username text box when they visit the site, how to
>>go about implementing this? any examples out there? thanks!
>>
>
>
Author
25 Mar 2005 8:59 AM
Cor Ligthert
Brian,

> accidently sent this to this group, ment it to go to aspnet
>
When you are using the VBNet language for your Aspnet application than is
this as well the right newsgroup.

My answer would have been the same as from Michael by the way.

Cor