Re: [Cppcms-users] Session expired
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-11-26 07:51:52
|
Several points: First of all take a look on: http://cppcms.com/wikipp/en/page/cppcms_1x_config#session.gc If the session is expired and gc runs the files of old sessions would be deleted, so if the folder is empty you can delete it. Also if you don't store much data in the session itself you can consider using client side session storage (singed + optionally eencrypted cookies) such that you don't even need to manage a folder for the files. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Christian Gmeiner <chr...@gm...> >To: cpp...@li... >Sent: Monday, November 26, 2012 9:28 AM >Subject: [Cppcms-users] Session expired > >Hi all. > >Is there a way to detect if a user session (stored on the server side) expired? > >I have he following problem. My cppcms app is running on an embedded >device where /tmp is only 25 MB big (tmpfs). I have a separate data >partition (1GB) to store generated zip files and uploaded update >files. I want to create a subfolder (session_coockie) in that >partition so that it is possible that multiple session could work in >'parallel'. >Now I am looking for a way to delete the subfolder if the session expired. > >thanks >-- >Christian Gmeiner, MSc > >------------------------------------------------------------------------------ >Monitor your physical, virtual and cloud infrastructure from a single >web console. Get in-depth insight into apps, servers, databases, vmware, >SAP, cloud infrastructure, etc. Download 30-day Free Trial. >Pricing starts from $795 for 25 servers or applications! >http://p.sf.net/sfu/zoho_dev2dev_nov >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |