Datasnap.DSHTTP.TDSHTTPApplication.GetRequestSessionId

From RAD Studio API Documentation
Jump to: navigation, search

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);

Properties

Type Visibility Source Unit Parent
function public
Datasnap.DSHTTP.pas
Datasnap.DSHTTP.hpp
Datasnap.DSHTTP TDSHTTPApplication

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