Home Reference Source
import Session from '@osjs/client/src/session.js'
public class | source

Session

Handles Sessions

Constructor Summary

Public Constructor
public

constructor(core: Core)

Creates the Session Handler

Member Summary

Public Members
public

Core instance reference

Method Summary

Public Methods
public

load(fresh: Boolean): *

Loads session

public

save(): *

Saves session

Public Constructors

public constructor(core: Core) source

Creates the Session Handler

Params:

NameTypeAttributeDescription
core Core

Core reference

Public Members

public core: Core source

Core instance reference

Public Methods

public load(fresh: Boolean): * source

Loads session

Params:

NameTypeAttributeDescription
fresh Boolean
  • optional
  • default: false

Kill all current applications first

Return:

*

public save(): * source

Saves session

Return:

*