:: 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
a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net? 534
What should you do is you want to remove an existing component but would like to make some funtionalities? 431
If you are using components in your application, how can you handle exceptions raised in a component? 847
How do u deploy ur project? 906
can we remote debug applications with the remote debugger installed with 2002, with 2003? 769
i want to implement grid view value in paypal site. so how to create this code in with C# 358
witch is the best insistute in sharpoint course.what abt future of share point course. 755
What ports must be open for DCOM over a firewall? What is the purpose of Port 135? 717
i want to implement grid view value in paypal site. so how to create this code in with C# 352
What is work flow gen? how can it will work with .Net? 1162
while developing webservices if i want some users to use my webservice only how can i give security to my webservice? 390
what is silver light when will we use silver light, 371
1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5 662
How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server 192
How to deploy/publish webservices?How many ways?Plz explain me 787
E-Mail New Answers        Answer Selected Questions