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.

Any help is appreciated.

There is no such concept as HttpSession in c++.

When you logon in java I presume the java code checks a database, such as MySQL, for login credentials. If username and password are verifyed then the user is allowed to continue using the program. C++ programs can do the same thing, but its a little more difficult. There are a couple of ways to access sql databases such as MySQL from C++, one of them is ODBC. If you google for ODBC C++ CLASSES you will find some free c++ classes and some not-so-free classes/libraries.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.