00001 #ifndef CGI_COOKIE_H 00002 #define CGI_COOKIE_H 111 00003 00004 #include "cgiClass.h" 00005 #include <ctime> 00006 #include<memory.h> 00007 00008 class cgiCookie : public cgiBase 00009 { 00010 00011 private: 00012 tm m_tm; 00013 string m_strExpires; 00014 string m_strPath; 00015 string m_strDomain; 00016 aString m_strCookies; // aString type has easier parse 00017 queryStringMap cookieMap; // the parsed associative array 00018 string m_strGotCookie; // one copy 00019 00020 public: 00021 cgiCookie(); 00022 virtual ~cgiCookie(); 00023 string & setTimeout( int month, int day, int year, int hour, int minute ); 00024 string & setPath( const char * path ); 00025 string & setDomain( const char * domain ); 00026 bool set( const char* name, const char * value ); 00027 string & get( const char * key ); 00028 aString & allCookies( void ); 00029 void setAllCookies( void ); 00030 }; 00031 00032 #endif
1.5.5