home > DBHandler for Sessions

DBHandler for Sessions

Specification

Summary

The DBHandler will provide Handler-interface to db storage. It will store pickled data, session id & client's IP address in db. Also retreiving & removing requested data by id will be implemented. On request the DBHandler will perform a generall clean up -> delete old session rows.

Implementation details

DBHandler is a derivate of Handler.

Public methods

Requirements

DBHandler will need an extra table in the db (where <name> == web.config.handler_parameters.db_table):

  CREATE TABLE <name> (
    id CHAR(129) UNIQUE NOT NULL,
    ip CHAR(16) NOT NULL,
    created int NOT NULL,
    touched int NOT NULL,
    data TEXT
  );

Sessions specs

[edit][history][backlinks] last modified August 17, 2007