NAME

YAWF::Session - Session management for web users

SYNOPSIS

my $object = YAWF::Session->new(
      query         => $CGI->Vars,
      cookies       => \%Cookies,
);

DESCRIPTION

Object for web user sessions

METHODS

new

my $object = YAWF::Session->new(
      query         => $CGI->Vars,
      cookies       => \%Cookies,
);

The new constructor lets you create a new YAWF::Session object.

So no big surprises there...

Returns a new YAWF::Session or dies on error.

save

Flush the current unsaved session data to storage.

login

Mark the current session as logged in.

logout

Mark the current session as logged out.

reset

Clears the current session-id and creates a new session object without clearing the data of the current sesssion-id.

capcha

Returns a short HTML code for a capcha images and stores the code in $self->{capcha}.

The capcha code is unaccessible from Template::Toolkit (which would prefer the method call).

SUPPORT

No support is available

AUTHOR

Copyright 2010 Sebastian Willing.