Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do you create a permanent cookie?

Answers were Sorted based on User's Feedback



How do you create a permanent cookie?..

Answer / surya beniwal

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;

Response.Cookies.Add(objCookie);

Response.Redirect("Default2.aspx");

Is This Answer Correct ?    7 Yes 1 No

How do you create a permanent cookie?..

Answer / vimal

by setting the expiry property greater than
datetime.minvalue.....

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is three major points in WCF?

1 Answers   Patni,


What is ISAPI?

2 Answers   IBM,


What I need to create and run an asp.net application?

0 Answers  


Anyone has Latest Microsoft ASP.NET Certification Dumps for these?

1 Answers  


Is asp.net a language?

0 Answers  


Name the validation control available in asp.net ?

1 Answers  


Name two properties common in every validation control?

9 Answers   Siebel Systems,


Define page fragment caching?

0 Answers  


What websites use asp.net?

0 Answers  


Usage of web.configuration ?

3 Answers   Microsoft,


How to Insert a TextBox value in to Sql database using C# coding?

17 Answers   HCL, Sona, TCS,


How to implement form based authentication in asp.net application?

0 Answers  


Categories