Static variable inside a c++ cgi

by Albert Vila Puig <avp(at)imente.com>

 Date:  Tue, 09 Dec 2003 15:26:50 +0100
 To:  hwg-servers(at)hwg.org
  todo: View Thread, Original
Hi all

    I want a c++ cgi feature like the static modifier in a java servlet.
I want to initialize an object once, not every time the cgi is loaded.
    I've tried to define the cgi variable as static, but the server
(apache) creates a new instance each time.

    Someone knows a way to define a real static object using c++ with
apache under Linux.

    Any help will be appreciate.

Thanks,
Albert

HWG: hwg-servers mailing list archives, maintained by Webmasters @ IWA