$getWebsiteLoggedInUserId()

Overview

public any function $getWebsiteLoggedInUserId()

Proxy to the getLoggedInUserId() method of Website login service. See Website users and permissioning for a full guide.

Example

var userId = $getWebsiteLoggedInUserId();