Webmaster  |  Imprint 
C++ Server Pages
Main  |  License  |  Documentation  |  Download 

SessionUnlocker Class Reference

#include <tnt/sessionunlocker.h>

List of all members.

Public Member Functions

 SessionUnlocker (HttpRequest &request_, bool release=true)
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.

Copyright © 2008 The Tntnet Development Team
Tntnet 1.6