[Cppcms-users] async session
Brought to you by:
artyom-beilis
|
From: Marcel H. <ke...@co...> - 2013-06-14 15:51:08
|
Hi *,
I use basic HTML pages for displaying and json_rpc_server as backend for
logic etc.
What is a good/the best way to do this?
I was trying to do that with the session interface. But how safe is
that? How is a user indentified? Could I just return the session ID? If
yes, how? I tried this:
> void WebAPI::login(username, password) {
> //validation
> session().set("username", username);
> session().save();
>
> return_result(session().get_session_cookie());
> }
But it does not work :/
I hope someone has approached this situation.
Regards
Marcel
|