Re: [Cppcms-users] How to store/manipulate dates?
Brought to you by:
artyom-beilis
|
From: <ele...@ex...> - 2012-02-07 02:55:36
|
Thank you very much for helping me understand cppcms. But I do have one
more question unrelated to dates -
What's the best way to check a cookie inside a template view? For example
- a person logs in, and then on every page it will say "Hello ${user}".
The example blog application seems use java script to do some client side
checking, but what's the best way to do it on the server side?
In simplistic terms what I'm trying to do in the template is something
like this
<%if is_logged_in()%>
<% gt "Hello {1}" using first_name%>
<%else%>
Please login below:
<%end%>
Thanks
Petr
|