Re: [Cppcms-users] Detect expired session
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-07-06 15:38:52
|
>________________________________ > From: Christian Gmeiner <chr...@gm...> >To: cpp...@li... >Sent: Friday, July 6, 2012 5:59 PM >Subject: [Cppcms-users] Detect expired session > >Hi all, > >is there a way to detect if a valid session gets expired? If the session is expired you will get an empty session - i.e. the session would not be loaded. > I would like to inform logged in users that their session has > expired What do you mean? If the user had lost the session due to timeout it would have to login again. There are also several models of session expiration: http://cppcms.com/wikipp/en/page/cppcms_1x_config#session > and that there may be some data lose > (changed values withoutsaving them). See, NEVER store valuable information information in the session. This is not what the session is for. Session may expire, be deleted, the user may loose the cookie. So sessions is not good for this purpose. > >thanks >-- >Christian Gmeiner, MSc > Regards, Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |