Skip to content

sessionStorage

Similar to localStorage but gets cleared entrytime the program starts. Sub-class of Storage. Saves the file in .session/UUID.yaml in the user folder.

Example

py
user = User('com.author.example_name')
session = sessionStorage(user)

session.setItem('version', '1.0.0')

version = session.getItem('version')
print(version)

Parameters

NameDescription
userThe User class for the session storage

Methods

getItem

setItem

removeItem

clear

key

exists

show

Not associated with or approved by Mojang Studios or Microsoft