Be a Supporter!

Browse Sections

Newgrounds Wiki: hasUserSession


import com.newgrounds.API;
var has_session:Boolean = API.hasUserSession();
Use this call to determine whether or not the user playing your game or movie has a valid user session with the hosting site.

If this returns false, the user is not playing on a host with Newgrounds API integration, or is not logged in to their user account.