Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

session.h File Reference

#include "pagelayout.h"

Go to the source code of this file.

Data Structures

struct  aw_websmcphandler_session_t

Functions

aw_websmcphandler_session_t * aw_websmcphandler_authenticate_session (aw_wwwhandler_xtn_t *xtn, aw_websmcphandler_session_t *session, const byte_t *loginid, const byte_t *chap)
 Use CHAP authentication for session.

void aw_websmcphandler_close_session (aw_wwwhandler_xtn_t *xtn, aw_websmcphandler_session_t *session, const byte_t *reason)
 Destructor for session object, cleanup lookup tables, log.

aw_websmcphandler_session_t * aw_websmcphandler_find_session (aw_websmcphandler_t *h, const byte_t *loginid)
 Lookup session based on loginid.

aw_websmcphandler_session_t * aw_websmcphandler_get_session (aw_wwwhandler_xtn_t *xtn)
 Lookup session based on cookie in xtn.

aw_websmcphandler_session_t * aw_websmcphandler_make_session (aw_wwwhandler_xtn_t *xtn)
 Constructor for session object.

void aw_websmcphandler_timeout_session (aw_websmcphandler_t *h)
 Check all active session to see if they have expired, if expired delete.


Function Documentation

aw_websmcphandler_session_t* aw_websmcphandler_authenticate_session (  aw_wwwhandler_xtn_t *  xtn,
aw_websmcphandler_session_t *  session,
const byte_t *  loginid,
const byte_t *  chap
) 
 

Use CHAP authentication for session.

aw_websmcphandler_authenticate_session

Parameters:
xtn The xtn
session The session to authenticate
loginid Login id
chap Should be md5_hex(prefix concatentated with md5_hex(password))
Returns:
Update session->authenticate, return session object , possibly different from input!

void aw_websmcphandler_close_session (  aw_wwwhandler_xtn_t *  xtn,
aw_websmcphandler_session_t *  session,
const byte_t *  reason
) 
 

Destructor for session object, cleanup lookup tables, log.

aw_websmcphandler_close__session

Parameters:
xtn The xtn
session The session to close
reason String describing reason to close

aw_websmcphandler_session_t* aw_websmcphandler_find_session (  aw_websmcphandler_t *  h,
const byte_t *  loginid
) 
 

Lookup session based on loginid.

aw_websmcphandler_find_session

Parameters:
h Handler
loginid The loginid
Returns:
A session object, else NULL

aw_websmcphandler_session_t* aw_websmcphandler_get_session (  aw_wwwhandler_xtn_t *  xtn  ) 
 

Lookup session based on cookie in xtn.

aw_websmcphandler_get_session

Parameters:
xtn Transaction
Returns:
A session object, else NULL

aw_websmcphandler_session_t* aw_websmcphandler_make_session (  aw_wwwhandler_xtn_t *  xtn  ) 
 

Constructor for session object.

aw_websmcphandler_make_session

Parameters:
xtn The xtn
Returns:
A session object, else NULL

void aw_websmcphandler_timeout_session (  aw_websmcphandler_t *  h  ) 
 

Check all active session to see if they have expired, if expired delete.

aw_websmcphandler_timeout_session

Parameters:
h Handler

Aware 0.11.1 Copyright (C) 1998-2005 Russell Leighton (russ@elegant-software.com)