/***************************************************************************
 *                                                                         *
 *   SESUTIL.H                                                             *
 *                                                                         *
 *   Copyright (c) 1999 Galacticomm, Inc.         All Rights Reserved.     *
 *                                                                         *
 *   Miscellaneous utilities for Active HTML session module.               *
 *                                                                         *
 *                                            - J. Alvrus   02/04/1999     *
 *                                                                         *
 ***************************************************************************/

#if !defined(__SESUTIL_H)
#define __SESUTIL_H

#include "gcomm.h"
#include "tvbutil.h"

#define PPFIX "galacth\\galsesah\\" // root template directory
#define TIMSLC 10                  // synthesis time slice (ms)

extern HMCVFILE g_hmcvSes;         // option file handle
extern tvbBase tvbErrMsg;          // error message text variable
extern tvbBase tvbUserID;          // User-ID text variable
extern tvbBase tvbOnSuccess;       // reproduce onsuccess param text var

bool
isRedirectLocation(                // is this a valid redirection location?
CHAR const * loc);                 //   location to test

void
SendPwdEmail(                      // send the password info email
CHAR const * pEmail,               //   to this address
CHAR const * pUserid,              //   send this User-ID
CHAR const * pPassword);           //   send this password

#endif // !defined(__SESUTIL_H)
