Skip to content

RobloxSession() Class

Loravis edited this page Nov 7, 2023 · 1 revision

The RobloxSession() class is used to authenticate and store Roblox account sessions.

Public fields

  • ulong id
  • string name
  • string displayName

LoginAsync

The LoginAsync method is used to log into a Roblox account, using the .ROBLOSECURITY cookie.

Parameters

  • string roblosecurityCookie

Usage

RobloxSession() session = new RobloxSession();
await session.LoginAsync("INSERT_COOKIE_HERE");
Console.WriteLine("Logged in as " + session.name);

GetRoblosecurity

Returns the RobloxSession's .ROBLOSECURITY cookie, null if the session isn't logged in.

Usage

string roblosecurity = session.GetRoblosecurity();