Sets the application name and base directories for the Dissemino application. These are as per the following arguments:-

Return TypeFunction nameArguments
hzEcodehdsApp::SetCookieName(hzString&,)

Declared in file: hzDissemino.h
Defined in file : hdsCore.cpp

Function Logic:

0:START 1:unknown 2:Return E_ARGUMENT 3:unknown 4:Return E_SETONCE 5:items 6:unknown 7:unknown 8:items 9:m_CookieName items 10:Return E_OK

Function body:

hzEcode hdsApp::SetCookieName (hzString& cookieBase)
{
   //  Category: Dissemino System Initialization
   //  
   //  Sets the application name and base directories for the Dissemino application. These are as per the following arguments:-
   //  
   //  Arguments: 1) appname The application name. This must be unique as seen by the delta server
   //     2) baseDir The base directory. From this a number of directories including the document root, will be set
   //  
   //  Returns: E_SETONCE If this function has already been called
   //     E_ARGUMENT If any of the arguments are NULL
   //     E_NOTFOUND If the base directory does not exist
   //     E_OK  If success
   _hzfunc("hdsSphere::SetCookieName") ;
   if (!cookieBase)    return E_ARGUMENT ;
   if (m_CookieName)   return E_SETONCE ;
   hzChain     Z ;     //  For building cookie name
   const char* i ;     //  Iterator
   Z << "_hz_" ;
   for (i = *cookieBase ; *i ; i++)
   {
       if (*i > CHAR_SPACE)
           Z.AddByte(*i) ;
   }
   m_CookieName = Z ;
   Z.Clear() ;
   return E_OK ;
}