HttpCloseServerSession function

The HttpCloseServerSession function deletes the server session identified by the server session ID. All remaining URL Groups associated with the server session will also be closed.

Syntax


ULONG HttpCloseServerSession(
  _In_  HTTP_SERVER_SESSION_ID ServerSessionId
);

Parameters

ServerSessionId [in]

The ID of the server session that is closed.

Return value

If the function succeeds, it returns NO_ERROR

If the function fails, it can return one of the following error codes.

ValueMeaning
ERROR_INVALID_PARAMETER

The Server Session does not exist.

The application does not have permission to close the server session. Only the application that created the server session can close the session.

 

Remarks

Applications must call HttpCloseUrlGroup before calling HttpCloseServerSession to close the all the URL Groups associated with the server session.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Http.h

Library

Httpapi.lib

DLL

Httpapi.dll

See also

HTTP Server API Version 2.0 Functions
HttpCreateServerSession
HttpSetServerSessionProperty
HttpQueryServerSessionProperty
HttpCloseServerSession

 

 

Community Additions

ADD
Show:
© 2014 Microsoft