How do you create a permanent cookie?

Answer Posted / sapna

Cookie is like a temporary file which contains a name and a
value pair and resides in the client.

cookie prepared or modified by the server side script will
be appended to the response and will be sent to the client.

dim cook as httpcookie
cook=new httpcookie("items")
cook.value=textbox1.text
response.appendcookie(cook).

Is This Answer Correct ?    13 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe in brief .net framework and its components.

546


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

1764


Define data caching?

545


What is custom events? How to create it?

627


What are the asp.net list controls and difference between them?

520






Why do we use datasource in asp.net?

525


Is asp.net free?

555


What kind of programming language is ASP.NET?

612


How is session id generated?

457


What is the use of HttpHandlers? When to use this?

630


how to elimainte the similar data from the different tables

1707


What is the postback property in asp.net?

544


How do you implement postback with a text box?

563


What are the advantages and disadvantages of session?

665


Do gac'ed assemblies have fulltrust?

645