GClasses
GClasses::GDynamicPageSession Class Reference

#include <GDynamicPage.h>

Public Member Functions

 GDynamicPageSession (GDynamicPageServer *pServer, unsigned long long id)
 
virtual ~GDynamicPageSession ()
 
GDynamicPageSessionExtensionextension ()
 Retrieve the extension object that was associated with this session by a call to setExtension. More...
 
unsigned long long id ()
 Returns the id associated with this session. More...
 
void onAccess ()
 Stamp the session as having been accessed at the current time. More...
 
const char * params ()
 
size_t paramsLen ()
 
GDynamicPageServerserver ()
 Returns the server object associated with this session. More...
 
void setCurrentUrl (const char *szUrl, const char *szParams, size_t paramsLength)
 
void setExtension (GDynamicPageSessionExtension *pExtension)
 Use this to store your own custom object with the session. Your object should inherit from GDynamicPageSessionExtension. (The extension will not be deleted when the session is deleted, but the GDynamicPageSessionExtension::onDisown method will be called, which you can use to delete the extension.) More...
 
const char * url ()
 

Protected Attributes

unsigned long long m_id
 
size_t m_paramsLen
 
GDynamicPageSessionExtensionm_pExtension
 
GDynamicPageServerm_pServer
 
const char * m_szParams
 
const char * m_szUrl
 
time_t m_tLastAccessed
 

Constructor & Destructor Documentation

GClasses::GDynamicPageSession::GDynamicPageSession ( GDynamicPageServer pServer,
unsigned long long  id 
)
virtual GClasses::GDynamicPageSession::~GDynamicPageSession ( )
virtual

Member Function Documentation

GDynamicPageSessionExtension* GClasses::GDynamicPageSession::extension ( )
inline

Retrieve the extension object that was associated with this session by a call to setExtension.

unsigned long long GClasses::GDynamicPageSession::id ( )
inline

Returns the id associated with this session.

void GClasses::GDynamicPageSession::onAccess ( )

Stamp the session as having been accessed at the current time.

const char* GClasses::GDynamicPageSession::params ( )
inline
size_t GClasses::GDynamicPageSession::paramsLen ( )
inline
GDynamicPageServer* GClasses::GDynamicPageSession::server ( )
inline

Returns the server object associated with this session.

void GClasses::GDynamicPageSession::setCurrentUrl ( const char *  szUrl,
const char *  szParams,
size_t  paramsLength 
)
inline
void GClasses::GDynamicPageSession::setExtension ( GDynamicPageSessionExtension pExtension)

Use this to store your own custom object with the session. Your object should inherit from GDynamicPageSessionExtension. (The extension will not be deleted when the session is deleted, but the GDynamicPageSessionExtension::onDisown method will be called, which you can use to delete the extension.)

const char* GClasses::GDynamicPageSession::url ( )
inline

Member Data Documentation

unsigned long long GClasses::GDynamicPageSession::m_id
protected
size_t GClasses::GDynamicPageSession::m_paramsLen
protected
GDynamicPageSessionExtension* GClasses::GDynamicPageSession::m_pExtension
protected
GDynamicPageServer* GClasses::GDynamicPageSession::m_pServer
protected
const char* GClasses::GDynamicPageSession::m_szParams
protected
const char* GClasses::GDynamicPageSession::m_szUrl
protected
time_t GClasses::GDynamicPageSession::m_tLastAccessed
protected