Datasnap.DSHTTP.TDSHTTPApplication.GetRequestSessionId

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Datasnap.DSHTTP.pas
Datasnap.DSHTTP.hpp
Unit: Datasnap.DSHTTP
Parent: TDSHTTPApplication

Delphi

function GetRequestSessionId(const ARequestInfo: TDSHTTPRequest; const CheckURLParams: Boolean = True): string;

C++

System::UnicodeString __fastcall GetRequestSessionId(Datasnap::Dshttpcommon::TDSHTTPRequest* const ARequestInfo, const bool CheckURLParams = true);

Description

Returns the Session ID if it is found in the request.

The GetRequestSessionId method returns the Session ID if it is found in the request and empty string if none ID is found. GetRequestSessionId checks the Pragma header and optionally the query parameter of the url. CheckURLParams specifies whether or not the query parameter of the URL should be checked.

Note: If both places have specified values, the URL parameter takes priority.

See Also