| re: Techniques to auto-login using a persistent cookie.
Well you could store anything you like in a cookie, but I don't think
storing a password in the user's cookie would be a good idea.
Instead I would be storing some kind of randomly generated identifier in the
cookie and using this to lookup the required information from a persistent
store (eg. a database, a file etc).
<craigkenisston@hotmail.com> wrote in message
news:1129872267.241208.31500@g49g2000cwa.googlegro ups.com...[color=blue]
>I have an asp.net application in which I sometimes store a persistent
> cookie once the user has logged in and this has been working great.
> However, I now add some user information like, username, firstname,
> lastname, etc. in the session collection and this works fine, but only
> the first time the user loggin.
> But, when the user returns I just get nil errors, because this data is
> lost.
> So, I guess, I'm missing something like auto-logging the user in the
> system to grab this user info from the database again, but I have no
> idea how to do this, or what do I need to do, for example, should I
> then store the user password in the cookie as well ?
>[/color] |