Which of the following property is used to set the cookie's expiration date and time in ASP.NET?

97. Which of the following property is used to set the cookie's expiration date and time in ASP.NET?

  1. Response.Cookies ["mycookie"].ExpiresDateTime
  2. Response.Cookies ["mycookie"].Expires
  3. Response.Cookies ["mycookie"].ExpiresTime
  4. Response.Cookies ["mycookie"].RemoveDateTime

Answer: B) Response.Cookies["mycookie"].Expires

Explanation:

The "Response.Cookies["mycookie"].Expires" property is used to set the cookie's expiration date and time in ASP.NET.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.