나는 Session.clear()를 사용하고 있었고 firecookie에서 세션이 여전히 존재한다는 것을 알아 차렸다. 그래서 주변에 구글 시작하고이 세션 지금제거 할 때 사용할 세션 메서드는 무엇입니까?
Session.Remove(strSessionName); Remove an Item from Session State Collection
Session.RemoveAll() Remove all items from session collection
Session.Clear() Remove all items from session collection Note: There is no difference between Clear and RemoveAll. RemoveAll() calls Clear(), internally.
Session.Abandon() Cancels the Current Session
명확를 제거하고 제거하는 4 가지 방법이 같은 일을 보이지만 하나는 당신이 사용 제거는()를 통해를 통해 일반 포기 이유를 같이 사용되어야하는 발견 .
마찬가지로 session.Abandon을 사용하면 현재 세션이 종료됩니다. 여기서 clear()는 값을 제거합니다.
왜 세션에 값이없는 상태로 세션을 유지하고 싶습니까? 왜 완전히 죽이지 않는거야?