:: Home Page
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   Errors
   Testimonials Refer this Site  Refer This Site to Your Friends  Site Map  Contact Us      
Categories >> Software >> Microsoft Related >> ASP.NET


Question How do you create a permanent cookie?
 Question Asked In Companies ::     < I also faced this Question! >
 Question Submitted By :: guest
  Answer Posted By  
write this cod on submit button : ..........

HttpCookie objCookie = new HttpCookie("UserCookie");
objCookie.Values.Add("UserName", TextBox1.Text);
objCookie.Values.Add("UserPass", TextBox2.Text);

//for permanent cookie .......
objCookie.Expires = DateTime.MaxValue;



Is This Answer Correct ?    5 Yes 1 No

  surya beniwal
View All Answers
Please Help Members By Posting Answers For Below Questions
 Question Views   Select
if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some can i implement this. 748
hi .net gurus. plz if any one has dumps on 70-631 and 70-541 on windows sharepoint services kindly mail me. 328
is there any third party tools are using in .net technologies? what are there ? give me the brief introduction? 989
What is the Difference between MVC And MVP design pattrens 966
Any disadvantages in Dataset and in reflection ? 1114
Which tool you have done? 403
How can we secure the data which is send from client side to server? Like the login id and paasword needs to be authenticated on the server but we cannot send it in plain text into the server.One more thing we are not using the SSL here. 350
8. Why do you want to work here? 472
code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications 340
explain code with datachaching with example 635
How can you implement encapsulation in 6018
How do u deploy ur project? 988
How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ? 1478
Difference between .NET and previous version? 759
How to include silver light .xap page into web application and what is the purpose of using silverlight application? 1040
E-Mail New Answers        Answer Selected Questions