How do you create a permanent cookie?

Answer Posted / naseem malik

If You want to Create a parament Cookies. you Permanent cookies are available until a specified expiration date, and are stored on the hard disk.So Set the 'Expires' property any value greater than DataTime.MinValue with respect to the current datetime. If u want the cookie which never expires set its Expires property equal to DateTime.maxValue.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we implement a identity (sql server) call in an asp.net page?

550


Explain the overview of asp.net?

558


Can the dictionary object be created in client?s scope ?

1984


Difference between Response.redirect vs server.transfer?

583


How to set the pane area to transparent of a scrollPane component.?

558






Is it possible to develop a single web application using ASP.NET webforms and ASP.MVC?

593


I have an excel file with data, i am importing this excel file data into Sqlserver 2005 database. while importing i am getting wrong data(ie, special characters) in one column(description column), upto some limit the data in that column is coming fine,after that data is coming like below. The "Walter" leather storage bench is one of our most popular styles. The top with the tufting and double stitching finish a very impressive piece. The size is perfect in front of beds and the storage adds another functional bonus. Open it up and sneak al���Ƴ�Â��ƴ�Ã��ƶ�Å�� al���Ƴ�Â��ƴ�Ã��ƶ�Å�� Is there anywhy to resolve this? (I am using recordset in coding for developing import process.) please help me soon.

1423


What are assemblies and namespaces and explain the difference between them ?

558


How to disable validator control by client side JavaScript?

567


Differentiate between client-side and server-side validations in web pages.

553


Which property needs to be set for script manager control to extend the time before throwing time out expection if no response is received from the server?

535


What is ascx?

525


Explain a program using code nuggets to create a simple application? : asp.net mvc

506


What is a pixel url?

510


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

511