My Name is Kay....

DIY , 먹방 , 개발 , 육아 , 여행 좋아합니다.
AdBlock 사용시 화면이 정상적으로 노출되지 않습니다.
포스팅 관련 문의 및 개발 문의는 Email : wkzkfmxksi@gmail.com

추가 포스팅이 이뤄지지 않는 블로그입니다. 문의는 wkzkfmxksi@gmail.com 으로 연락주세요.
kay
조회 수 3138 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

기본적인 읽기 쓰기는 잘 사용해왔으나 

근래에 만료일을 지정하지 않아 쿠키가 계속 남아있을것같다. 라는 추측하고 일처리를 한적이 있었는데

MSDN 자료에는 쿠키 만료일을 지정하지 않으면 세션 종료시에 쿠키가 만료된다고 합니다.


사소한 정보이고 평소에 별 생각없이 사용하던 쿠키도 들여다보니 공부할것이 많습니다.. T^T



* Syntax


Response.Cookies(cookie)[(key)| .attribute] =value



* Parameters

- cookie

The name of the cookie. 

- key

An optional parameter. If key is specified, Cookie is a dictionary, and key is set to value. 

- attribute

Specifies information about the Cookie itself. The attribute parameter can be one of the following.


Name

Description

Domain

Write-only. If specified, the Cookie is sent only to requests to this domain.

Expires

Write-only. The date on which the Cookie expires. This date must be set in order for the Cookie to be stored on the client's disk after the session ends. If this attribute is not set to a date beyond the current date, the Cookie expires when the session ends.

HasKeys

Read-only. Specifies whether the cookie contains keys.

Path

Write-only. If specified, the Cookie is sent only to requests to this path. If this attribute is not set, the application path is used.

Secure

Write-only. Specifies whether the Cookie is secure.

- Value

Specifies the value to assign to key or attribute.




참고 Url : http://msdn.microsoft.com/en-us/library/ms524757(v=vs.90).aspx

?