0

Hi to everyone,

I have been trying to activate "remember me" option in login page of my site. But I have some errors while executing this option. Can anyone help me to solve the problem or any correct URL for activating cookies.

Thanks to all..
Bye..

3
Contributors
6
Replies
7
Views
11 Years
Discussion Span
Last Post by mahe4us
0

Whether or not to save/store cookies is a user option. If a user decides to clear their cookies, there is nothing you can do about it.

0

Hai tgreer,

Thanks yo your nice reply. If the user didnt check the Remember me option it does nothing. But if the user wants Remember me option then we would save the username and password in cookie. For that I need some help. Anyone give URL for cookie set.

bye..

0

Creating cookies is simple. Use the System.Web.HttpCookie class.

HttpCookie newCookie = new HttpCookie("myCookie");
newCookie.Values.Add("Key","Value");
newCookie.Expires = #12/31/2008#;
Response.Cookies.Add(newCookie);

That's untested code.

0

Whoops! For some reason I thought we were in the ASP.NET forum. Sorry, and thanks for the correction.

0

Hi tgreer,

Its not a problem. I found the way for set cookies for Remember me option in login page. Anyway thanku for your useful reply..

Bye.....

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.