Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st May 2011, 08:46
Germanius Germanius is offline
Senior Member
 
Join Date: Dec 2009
Location: Hannover
Posts: 118
Thanks: 37
Thanked 25 Times in 15 Posts
Default PHP Sessions ISPC3 and SuPHP

Hi there,

have some problems with a login script and sessions.
The session always get inactive after 3 minutes of inactivity. How can I make it longer, lets say 30 minutes or until the user logs out.
I used ini_sets and spcifyed a sesseion save path to a new folder. That works, sessions are stored there.
Here are my ini_sets:
PHP Code:
ini_set('session.gc_probability'1);
 
ini_set('session.gc_dividend',100);
 
ini_set('session.gc_maxlifetime'86400);
 
ini_set('session.cookie_lifetime'86400);
 
ini_set('session.use_cookies',1);
 
ini_set('session.use_only_cookies',0) ;
 
session_cache_expire('1440');
 
session_set_cookie_params (86400); 
But it is still the same. After 3 minutes session is inactive. On my localhost it works.
Reply With Quote
Sponsored Links
  #2  
Old 21st May 2011, 21:52
Germanius Germanius is offline
Senior Member
 
Join Date: Dec 2009
Location: Hannover
Posts: 118
Thanks: 37
Thanked 25 Times in 15 Posts
Default

I see the sessions which were created in the folder. But they disappear after 3 minutes or something like this.
Something is deleting them, but it is not my script. Is ISPC3 deleting sessions after a while?
System is Debian Lenny.
Reply With Quote
  #3  
Old 23rd May 2011, 11:12
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,483
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
 
Default

ISPConfig deletes the sesion once a day at 0:20 in the morning when the session files are older then one day as part of the cron_daily cronjob. So ISPConfig is not causing this 3 minute cleanup.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
suPHP + suEXEC u4david Installation/Configuration 9 25th September 2010 15:59
Save Session in DB in ISPC3? Mosquito General 3 6th May 2010 14:38
Custom PHP.ini for ISPC3 with Suphp and FastCGI ethanlifka Tips/Tricks/Mods 0 7th March 2010 03:14
CentOS 5.2+ISPc3+suPHP=no php, html only DonAteloNow Installation/Configuration 13 23rd March 2009 10:48


All times are GMT +2. The time now is 13:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.