Table of contents Index

Module Session

class AbstractSession # Abstract base class for different session types (master, or stacked)
class MasterSession(AbstractSession)
class StackedSession(AbstractSession) # Session class for subsessions.
string AuthException = 'Authenticated failed'
string DACException = 'DAC policy violation'
int FALSE = 0
string InternalError = 'Internal error occured'
string MACException = 'MAC policy violation'
string ServiceException = 'Service'
int TRUE = 1
int Z_ACCEPT = 1
int Z_CRITICAL = 8
int Z_DEBUG = 128
int Z_DENY = 2
int Z_ERROR = 4
int Z_INFO = 64
int Z_MESSAGE = 32
int Z_REJECT = 3
int Z_UNSPEC = 0
int Z_WARNING = 16
string ZoneException = 'Zone not found'
string __file__ = './Session.py'
string firewall_name = 'zorp'
instance root_zone = Zone.RootZone instance
dictionary settings = {}
list zones = []

Description

Sessions are hierarchically stacked into each other just like proxies. Each session has an owner session (except for the master session which is on the top), and variables are "inherited" from owner sessions. (implemented using a simple getattr wrapper) This way stacked sessions can inherit data from encapsulating proxies. (an HTTP proxy may define an URL and a mime-type, and stacked CVP module may inspect those values)


Copyright © 2000 BalaBit IT Ltd.
Written by: Balázs Scheidler