[Cppcms-users] CppCMS interoperability with other web frameworks - which ones?
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2015-11-16 06:12:35
|
I'm working on implementation of session sharing between CppCMS and 3rd part web technologies. So it would be easier to migrate from current platform by implementing most performance critical parts in CppCMS (I'm trying to clear most critical tasks for CppCMS 1.2 so it can be released). In general it works this way: Some of CppCMS session API was exposed as pure C API to simplify module writing: http://sourceforge.net/p/cppcms/code/HEAD/tree/framework/trunk/cppcms/capi/session.h Modules were implemented for 3rd part technologies that allow to load modify and save CppCMS session.( http://sourceforge.net/p/cppcms/code/HEAD/tree/framework/trunk/contrib/integration/session/ )Currently I had written support for PHP, Java, Python (+django) and Asp.Net on its way. For example PHP code: include_once('cppcms.php'); $pool=CppCMS_SessionPool::from_config('cppcms-config.js');$session=$pool->session();$session->load();$x=0;if($session->is_set('x')) { $x=$session['x'];} $x=intval($x)+1;$session['x']=$x;$session->save(); echo "x=$x\n"; Now what are most important web-technologies you think need to be there out of the box?I'm thinking of Ruby on Rails but I have no experience with Ruby at all. Artyom Beilis |