ssjs_getClientID()
NES3+Syntax
ssjs_getClientID()
Description
The ssjs_getClientID function is a top-level function that is not associated with any core server-side object. This function returns a unique identifier from the runtime engine. This allows you to track a user's session across several pages when using server-side maintenance. When using this function, there is no need to store the identifier as a property of the client object.
Example
Listing 8.141 writes the identifier generated by the ssjs_getClientID function to the page.
Listing 8.141 Seeing the ssjs_getClientID Function
<SERVER> // Store the identifier in a variable var myIdentifier = ssjs_getClientID(); // Write the ID to the page write(myIdentifier); </SERVER> |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.