• JMap.User.getToken

    If user is logged in, returns the current user session token.

    Else returns "-1" if user has no active session.

    Returns string

    Example

    // returns the user session token
    JMap.User.getToken()