Home  /  RSS  /  RSS Comments  /  Enter

CppCMS moved to MIT License

Tuesday, January 16, 2018, by artyom ; one comment

Today I decided that CppCMS 1.2 will be licensed under MIT license instead of LGPLv3.

These are the goals of this move:

  1. Increase the CppCMS market share
  2. Bring more developers to CppCMS project itself

Regards to all CppCMS users.


CppCMS 1.1.1 Release Candidate 1 is Available

Sunday, December 3, 2017, by artyom ; Posted in: Progress; 0 comments

New version includes following changes:

CppCMS 1.1.0 Beta was released

Tuesday, July 11, 2017, by artyom ; Posted in: Progress; 0 comments

After the goals for 1.2 were completed I announce official CppCMS 1.1.0 beta (stable will be 1.2.0)

It is available on the usual place:


It includes many new and important features:


Now I ask the community to fully participate in beta testing so 1.2 will be released ASAP.

Goals for beta testing

Framework Unit Test:

  1. Download the beta version, build, run tests
  2. Report on what platform you tested: OS, Compiler version, standard library (libstdc++/libc++)
  3. Have you had any tests failed and if you had please attach Testing/Temporary/LastTest.log and CMakeCache.txt from your build directory

I specially need tests on Mac OS X various versions, various ARM platforms like raspberry pi and Windows different compilers

Compatibility Test:

  1. Try to build your existing applications with latest version, report any problems
  2. If you have been using CppCMS 1.0.5 till now please try to build CppCMS 1.1.0 and run existing programs with new shared objects/dll WITHOUT rebuilding your applications - it must work as is!

Feature Test:

Go to: http://cppcms.com/wikipp/en/page/cppcms_1_2_whats_new

And try some of new features, report any issues with them or any problems with API design.

If all goes smoothly I'll release 1.2.0 - official stable version.

CppCMS code migrated to GitHub

Wednesday, March 1, 2017, by artyom ; Posted in: Progress; one comment

After multiple requests and my final decision the CppCMS web framework code migrated to GitHub


Please note:

  1. Only CppCMS framework migrated, other subprojects like CppDB or Wikipp are still pending conversion
  2. The main bug tracker is still on source-forge - however I'll relate to issues opened on GitHub

Session Sharing with Non-CppCMS technologies

Monday, November 16, 2015, by artyom ; Posted in: Progress; one comment

One of the problems in integrating different technologies on same web site is sharing the data between them, in particular sharing session data.

For example you have a huge web platform written in PHP or Java and you want to improve performance of certain subsystems poring them to CppCMS. On of the first issues you'd encounter is how to share the session between them - so every side would know who is the user, what permissions he has, etc.

So I made cppcms::session_pool and cppcms::session_interface accessible outside the usual request/response scope and wrapped it with pure C API - such that no C++ exceptions are thrown and every function is resolvable via dlopen/GetProcAddress- to make it more accessible for integration with different languages.

Several modules for different programming languages were implemented allowing smooth integration with their web frameworks and APIs:

Actually there is no particular limits regarding technology - just a question of implementing loadable module for a specific language/platform.

In general it consists of a SessionPool object that is created from a configuration file and exists globally. It generates a special Session objects that is loaded from Http Request cookies, updated and saved to the Http Response object.

It looks like this:


// pool initialization
// per request session access
if($session->is_set('x')) {



static SessionPool pool;

public void init() throws ServletException
    pool = SessionPool.openFromConfig("/path/to/cppcms-config.js");

public void doGet(HttpServletRequest request,
                  HttpServletResponse response) 
                    throws ServletException, IOException
    Session session = pool.getSession();
    String x="0";

Python with Django:

# Create global pool

# Actual view
def home(request):
    if 'x' in s:
            v= s['x']
    response = HttpResponse()


static SessionPool pool;
static Example() {
    pool = SessionPool.FromConfig("cppcms-config.js");
protected void Page_Load(object sender,EventArgs e)
    using(Session s = pool.Session()) {
        string v="0";
        v = (int.Parse(v) + 1).ToString();

So basically you have a full access to CppCMS session from 3rd party most popular technologies.

Still thinking of implementing a module for Ruby on Rails but I have never written a line of code in Ruby so it is quite challenging for me. I'll probably wait till somebody contributes one.

previous page

next page