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 / rahul garad

You can set the permanent cookied by setting the expiry
date to the MaxDate

<%
Response.Cookies("username") = "you"
Response.Cookies("username").Expires = Date.MaxValue
%>

Is This Answer Correct ?    70 Yes 2 No

How do you create a permanent cookie?..

Answer / ajinkya

<%
Response.Cookies("username") = "you"
Response.Cookies("username").Expires = Date.MaxValue
%>

Is This Answer Correct ?    3 Yes 1 No

How do you create a permanent cookie?..

Answer / 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

How do you create a permanent cookie?..

Answer / bhim bharti

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 ?    0 Yes 0 No

How do you create a permanent cookie?..

Answer / preeti

Permanent cookies are the ones that are most useful. Permanent cookies are available until a specified expiration date, and are stored on the hard disk. The location of cookies differs with each browser, but this doesn’t matter, as this is all handled by your browser and the server. If you want to create a permanent cookie called Name with a value of Nigel, which expires in one month, you’d use the following code
Response.Cookies ("Name") = "Nigel"
Response.Cookies ("Name"). Expires = DateAdd ("m", 1, Now ())

Is This Answer Correct ?    0 Yes 0 No

How do you create a permanent cookie?..

Answer / 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

How do you create a permanent cookie?..

Answer / 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

How do you create a permanent cookie?..

Answer / shwetha

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

Is This Answer Correct ?    10 Yes 13 No

Post New Answer

More ASP.NET Interview Questions

How many column in table of sql server?

3 Answers  


How you can stop the validation of ASP.NET controls from client side?

0 Answers   Sans Pareil IT Services,


What is the difference between Trace and Debug?

2 Answers   BirlaSoft,


what is the difference between assemblyinfo and webconfig files?

1 Answers  


What is viewstate? What does the “enableviewstate” property do?

0 Answers  


What base class do all Web Forms inherit from?

1 Answers  


What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?

3 Answers   Satyam,


What Are The Difference Between AutoEventWireup="true" and AutoEventWireup="False"

12 Answers   Phoenix Technologies,


where can i gather the materials for MCP certification

2 Answers  


How can we make sure that Web API returns JSON data only?

0 Answers  


explain ado.net

6 Answers  


Explain what is postback in asp. Net?

0 Answers  


Categories