The class allows you to create a Handle (or Reference) to a specific browser. The handle allows you to access the browser in contexts where Cookies are not directly accessible by your Apex code (for example in LWC AuraEnabled methods)
Returns number of milliseconds until the handle expires
Returns a String representation of the current Handle. The value
can be passed to your LWC components to reference the browser for example.
global Boolean isExpired();
Indicates if the handle has expired.
global Long extendUntil(Datetime expirationTime);
expirationTime
: the new expiration time for the handle.
Creating handles which have long expiration time can represent a security risk for your application. When a handle leaks, it can be used to reference the current browser and do exactly the same actions on a different machine.
Returns the current handle