tags:

views:

294

answers:

2

There is a cgi code written in C++. Currently there is no session management done in the web pages. There is a need to provide sessions in the web pages so that the user can login, maintain session and then logoff. While this is a fairly simple task in java with HttpSession, I have no clue how to do this with C++ code.

+1  A: 

C++ is not like Java in the breadth of the functionality of the bundled libraries, so you need to extend the language with some extra libraries for not so common tasks (such as C++ CGI development). You can either build the library yourself to support functionality not present in the standard library, or use one developed by a third party.

In this case I'd use the NCBI C++ Toolkit. It provides a nice CGI module with session support

Vinko Vrsalovic
A: 

discard cgi and go for dynamicly loaded c++ code into apache... libapache2-mod-raii is a complete framework with builtin database connexion pools, sessions and all the stuffs that makes developping web applications enjoying !

Guillaume Gimenez