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

Project Versions

Previous topic

Template Engine Modules

Next topic

Web Socket

This Page