Share via


SetCookieHeaderValue.MaxAge 속성

정의

쿠키 특성의 값을 Max-Age 가져오거나 설정합니다.

Max-Age 특성은 쿠키가 만료될 때까지의 시간(초)으로 표시되는 쿠키의 최대 수명을 나타냅니다.

public:
 property Nullable<TimeSpan> MaxAge { Nullable<TimeSpan> get(); void set(Nullable<TimeSpan> value); };
public TimeSpan? MaxAge { get; set; }
member this.MaxAge : Nullable<TimeSpan> with get, set
Public Property MaxAge As Nullable(Of TimeSpan)

속성 값

설명

https://tools.ietf.org/html/rfc6265#section-4.1.2.2을 참조하세요.

적용 대상