Microsoft Internet Security and Acceleration Server 2004 SDK |
The CreatePrivateSession method creates a private session object for a given client.
HRESULT CreatePrivateSession( LPSOCKADDR ClientAddress, DWORD ClientAddressLength, LPSOCKADDR ProxyInternalAddress, DWORD ProxyInternalAddressLength, IFWXAuthenticatedUser* AuthenticatedUser, IFWXSession** ppPrivateSession );
A private session object allows a filter to use an application level authentication scheme.
Private sessions may be needed in outbound and inbound scenarios.
Outbound scenario: Session objects are created automatically for Firewall service or SecureNAT client requests, but not when an application connects to an internal address of the ISA Server computer through an application filter. A filter that acts as an application level proxy may have to create a private session object by using the IFWXFirewall::CreatePrivateSession method to have access to session dependent functions.
Inbound Scenario: Inbound primary connections can be directed to a SecureNAT client by using the IFWXFirewall::CreatePrivateSession or IFWXFirewall::GetClientSession method. Use IFWXFirewall::CreatePrivateSession when the inbound connection has been requested by an application, the SecureNAT client is not known by the Firewall service, and no session object has been created. Use the IFWXFirewall::GetClientSession method only if the filter can assert that the client is configured to be a SecureNAT client of that server.
Server: Requires Windows Server 2003 or
Windows 2000.
Version: Requires Internet Security and Acceleration
Server 2004.
Header: Declared in Wspfwext.idl.