How do you create a permanent cookie?

Answer Posted / laki

we can create a permanent cookies giving the expiry date .
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 ?    7 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.

2590


What is the use of placeholder control?

544


What are sessions and cookies?

560


Is viewstate secure?

503


COM+ Used ________________ Isolation Level

1517






What are the different types of events are occured when a client requests an ASP.NET page from IIS server?

579


benefits of migration from asp to asp.net hi frnds, i have to give presentation to a client about how useful would be migrating their project from asp to asp.net .plz give me some points which i should incorporate in my ppt thanks

1666


Which class is used to send an email message from an ASP.NET Web page?

534


What is viewstate in asp net with example?

523


Why session management is required?

531


What is the difference between WindowsDefaultLocation and WindowsDefaultBounds?

666


What type of code, client-side or server-side, is found in a code-behind file of a Web page?

578


What are the cookies types in asp.net?

553


Whats the difference between registerclientscriptblock, registerclientscriptinclude and registerclientscriptresource?

580


Write the different features of a Thread and a Process?

619