Hi Dmitry! > Dmitry Dneprov <[email protected]> hat am 11. März 2014 um 22:39 geschrieben: [...] > I have plans to use tntnet session. > What features of "big" application servers session does tntnet support? > a) setting session timeout (default timeout is too short)
It's no problem. You can do this over the class "tnt::Configurator" http://www.tntnet.org/apidoc/html/classtnt_1_1_configurator.html Or over the Tag "" in the tntnet application server Configuration. You find a example for a json configuration in my own project "peruschim": https://github.com/OlafRadicke/peruschim_cpp/blob/master/src/Core/models/Config.cpp > b) setting session cookie name (I want to hide tntnet usage from hackers) The value of the cookie is only a token. The data is being stored on server side. With void tnt::HttpReply::setCookie ( const std::string &name, const std::string &value, unsigned seconds ) You can set a cookie. But well, this api is not well documented. > c) sharing session between nodes in cluster (I plan to use tntnet for highload > site) That is not supported. The server side data is stored only in the ram. That has the highest performance. But What do you can do is to use a load balancer. The load balancer is clever enough to send the request from one client all time to the same cluster node. > d) external session data store (I want persistent sessions to behave > like ones in gmail - always logged in, even after server restart) A browser session (with a cookie) is not the same like a application session. So do you have to manage a own cookie with a own session token, and you have to stored the application session data in a back end, What do you like (MySQL, PostgreSQL, SQLite...). best regards Olaf Radicke ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
