Skip to content

newgroundsiodotnet.datamodels.session

GlitchyPSIX edited this page Mar 30, 2025 · 4 revisions

Session

Namespace: NewgroundsIODotNet.DataModels

Represents a user's session.

public struct Session

Inheritance ObjectValueTypeSession

Properties

Expired

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

public bool Expired { get; }

Property Value

Boolean

Id

A unique session identifier

public string Id { get; set; }

Property Value

String

PassportUrl

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.

public string PassportUrl { get; }

Property Value

String

RememberSession

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

public bool RememberSession { get; }

Property Value

Boolean

User

The user associated with the session.

public Nullable<User> User { get; }

Property Value

Nullable<User>

Constructors

Session(Boolean, String, String, Boolean, Nullable<User>)

Session(bool expired, string id, string passportUrl, bool rememberSession, Nullable<User> user)

Parameters

expired Boolean

id String

passportUrl String

rememberSession Boolean

user Nullable<User>

Clone this wiki locally