Remember ME option

Reply

Join Date: Sep 2006
Posts: 53
Reputation: mahe4us is an unknown quantity at this point 
Solved Threads: 0
mahe4us's Avatar
mahe4us mahe4us is offline Offline
Junior Poster in Training

Remember ME option

 
0
  #1
Oct 12th, 2006
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..
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Remember ME option

 
0
  #2
Oct 12th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 53
Reputation: mahe4us is an unknown quantity at this point 
Solved Threads: 0
mahe4us's Avatar
mahe4us mahe4us is offline Offline
Junior Poster in Training

Re: Remember ME option

 
0
  #3
Oct 12th, 2006
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..
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Remember ME option

 
0
  #4
Oct 12th, 2006
Creating cookies is simple. Use the System.Web.HttpCookie class.

  1. HttpCookie newCookie = new HttpCookie("myCookie");
  2. newCookie.Values.Add("Key","Value");
  3. newCookie.Expires = #12/31/2008#;
  4. Response.Cookies.Add(newCookie);
That's untested code.
Last edited by tgreer; Oct 12th, 2006 at 11:55 pm.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 44
Reputation: MCP is an unknown quantity at this point 
Solved Threads: 3
MCP MCP is offline Offline
Light Poster

Re: Remember ME option

 
0
  #5
Oct 14th, 2006
...or in php use setcookie (http://ca3.php.net/manual/en/function.setcookie.php)

I'm assuming you're looking for the PHP code =)
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Remember ME option

 
0
  #6
Oct 15th, 2006
Whoops! For some reason I thought we were in the ASP.NET forum. Sorry, and thanks for the correction.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 53
Reputation: mahe4us is an unknown quantity at this point 
Solved Threads: 0
mahe4us's Avatar
mahe4us mahe4us is offline Offline
Junior Poster in Training

Re: Remember ME option

 
0
  #7
Oct 16th, 2006
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.....
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC