954,492 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to maintain sessions with C++ code?

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.

Vicky21
Newbie Poster
1 post since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

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.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You