How to maintain sessions with C++ code?

后端 未结 2 1015
情歌与酒
情歌与酒 2021-01-13 22:25

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

相关标签:
2条回答
  • 2021-01-13 23:16

    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

    0 讨论(0)
  • 2021-01-13 23:27

    Another alternative may be the "FastCGI / CGI C++ Library" that is aimed for Boost integration at someday: http://cgi.sourceforge.net/

    It claims itself to provide "Configurable support for strongly-typed sessions (optional)."

    0 讨论(0)
提交回复
热议问题