tnt::SessionUnlocker Class Reference

Unlocks the session as long as the object is in scope. More...

#include <tnt/sessionunlocker.h>

Public Member Functions

 SessionUnlocker (HttpRequest &request_, bool release=true)
 ~SessionUnlocker ()
void unlock ()
void lock ()

Detailed Description

Unlocks the session as long as the object is in scope.

Normally the session is locked as soon as a request uses somewhere a session variable. Sometimes it is desirable to explicitely release that lock, e.g. when a request has some longer task to do.

This frequently happens in reverse ajax, where the request blocks while waiting for a event.

Constructor & Destructor Documentation

tnt::SessionUnlocker::SessionUnlocker ( HttpRequest request_,
bool  release = true 
)
inlineexplicit
tnt::SessionUnlocker::~SessionUnlocker ( )
inline

Member Function Documentation

void tnt::SessionUnlocker::lock ( )
inline
void tnt::SessionUnlocker::unlock ( )
inline

The documentation for this class was generated from the following file: