Re: [Cppcms-users] Session expired
Brought to you by:
artyom-beilis
From: Christian G. <chr...@gm...> - 2012-11-26 08:02:25
|
2012/11/26 Artyom Beilis <art...@ya...>: > 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. > At the moment I am using "storage":"memory" in a productive environment as I only need the session for user login. > > 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. > My application generates a zip file with all system log files and provides it as download to the browser. The bigger problem is that the user can upload files with max 350 MB to the local storage and I am not sure if this is too big. thanks -- Christian Gmeiner, MSc > > 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 > > > > ------------------------------------------------------------------------------ > 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 > |