Session API

Author:Juti Noppornpitak

This package contains the session controller used with the web controller and socket handler.

class tori.session.controller.Controller

A session controller for the controller (request handler).

delete(key)

Delete the data :param key: data key :type key: str

get(key)

Retrieve the data

Parameters:key (str) – data key
Returns:the data stored by the given key
id

Administrated Session ID

Returns:str
reset()

Clear out all data of the administrated session

set(key, content)

Define the data

Parameters:
  • key (str) – data key
  • content – data content
Read the Docs v: v2.1
Versions
latest
v2.1
v2.0
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.