Topic Path: Symbol Reference > Classes > TIdHTTPResponseInfo Class > TIdHTTPResponseInfo Methods > CloseSession Method
TIdHTTPResponseInfo.CloseSession Method

Closes an HTTP session and removes the session cookie.

procedure CloseSession;

CloseSession is a procedure that closes a session in the session list for an HTTP server. 

CloseSession locates the session Cookie with the name specified in GSessionIDCookie, and removes the value from the Cookies collection. CloseSession also frees and release the Session maintained in the object instance. 

CloseSession can be used to ensure that an HTTP Server closes the session even when the session list is maintained.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.