Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

session.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2005, 2006 by KoanLogic s.r.l. <http://www.koanlogic.com>
00003  * All rights reserved.
00004  *
00005  * This file is part of KLone, and as such it is subject to the license stated
00006  * in the LICENSE file which you have received as part of this distribution.
00007  *
00008  * $Id: session.h,v 1.9 2006/01/09 12:38:38 tat Exp $
00009  */
00010 
00011 #ifndef _KLONE_SESSION_H_
00012 #define _KLONE_SESSION_H_
00013 
00014 #include <u/libu.h>
00015 #include <klone/request.h>
00016 #include <klone/response.h>
00017 #include <klone/vars.h>
00018 
00019 #ifdef __cplusplus
00020 extern "C" {
00021 #endif
00022 
00023 struct session_s;
00024 typedef struct session_s session_t;
00025 
00026 int session_free(session_t*);
00027 int session_remove(session_t*);
00028 int session_clean(session_t*);
00029 int session_age(session_t*);
00030 
00031 vars_t *session_get_vars(session_t*);
00032 const char *session_get(session_t*, const char*);
00033 int session_set(session_t*, const char*, const char*);
00034 int session_del(session_t*, const char*);
00035 int session_load(session_t *ss);
00036 int session_save(session_t *ss);
00037 int session_save_to_io(session_t*, const char*);
00038 
00039 #ifdef __cplusplus
00040 }
00041 #endif 
00042 
00043 #endif

←Products
© 2005-2006 - KoanLogic S.r.l. - All rights reserved