Internet Direct (Indy)
Home
PreviousUpNext
TIdHTTPResponseInfo.CloseSession Method

Closes an HTTP session and removes the session cookie.

Pascal
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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.