00:00
00:00
Newgrounds Background Image Theme

Proximothegr81 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Newgrounds Wiki: session

Contains information about the current user session.

Properties:

expired - boolean
If true, the session_id is expired. Use App.startSession to get a new one.

id - string
A unique session identifier

passport_url - string
If the session has no associated user but is not expired, this property will provide a URL that can be used to sign the user in.

remember - boolean
If true, the user would like you to remember their session id.

user - User
If the user has not signed in, or granted access to your app, this will be null



Notes:
Remembered sessions will expire after 30 days of inactivity. All other sessions will expire after one hour of inactivity.

Session expirations get renewed with every call. You could use 'Gateway.ping' every 5 minutes to keep sessions alive.