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

Out of ASP or ASP.NET which one is stateless?

675


What is the usage of DelegatingHandler?

587


What are the uses of list view control in Asp.net?

611


How do we assign page-specific attributes?

611


How will create assesblies at run time?

548






What is the importance of Global.asax in ASP.NET?

546


Explain how do you validate the controls in an asp .net page?

515


What is the part of url?

530


What’s the difference between response .redirect and server.transfer?

510


What is advantage of asp.net?

541


How does cookies work in asp net?

507


What is difference between View State and Hidden Field in ASP.NET?

657


what are the web form events available in asp.net?

556


What is the use of data set in asp.net?

482


What are the differences between clr & cts?

532