Breadcrumbs

UserIdMethodModel

Get a UUID somewhat 'stable' for current user/session.

implements: method
bundle: standard portal bundle
since 2.0.0
Get a UUID somewhat 'stable' for current user/session.

This model is accessible as > method by the global access path 'custom.portal.userId'.

Methods

custom.portal.userId(String:cookieName)String
since 2.0.0
Get a UUID id of current user, if user is logged in get UUID from partyAsset otherwise get it from cookie with given name or create new and set it in cookie.