Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
Its not related to V7.3 and a general question about server setup. Yesterday I note that I cant enter my session directory. I take a closer look and see the ftp directory listing took 32MB (only the listing smile )There was million of files in the directory with a total size of 20GB.

It seems that the server dont delete the session files automaticly. We are running on linux Apache Server with CGI/FastCGI and Zend enabled. PHP 5.2.5-3.

session
Session Support enabled
Registered save handlers files user sqlite
Registered serializer handlers php php_binary wddx

session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_httponly Off Off
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 3600 1440
session.gc_probability 0 0
session.hash_bits_per_character 4 4
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /var/..../board/sessions /var/lib/php5
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0



Any idea where to look?

Last edited by Zarzal; 05/10/2008 3:22 AM.

my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
Can anyone check his session directory if this happen too? I m not sure this is only on my server. As I can see, 99,9% ofthe session files comes from spiders surfing my board.

The I found this comment in ubbthreads.inc.php
// Bump up the session_cache_expire to prevent post tracking
// variables from being lost due to inactivity

Can this releated to my issue? The spiders allways on, creating new session files all the time but the old ones dont expire.


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
I see that my session files have 0600 as rights. My server is very restrictiv. My hoster told me to try 0660 for session files. Is there an easy way to do this?


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
My sessions files are also 600, which I guess is normal.

I have 345 files amounting to 154kb in size.

I have 100 online most of the time - so not even sure if mine is correct? Seems a low number of files.

Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
the 600 is normal, but its related to the server setup. I have a lot of trouble with UBBthreads and need to chmod a lot of files. I reported it all the time and this issue is fixed. Now I would to try out session files 0660 to be sure. I get in 0ne second up to 4 session files. Thats are thousand files each day ....


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Hmm, just checked a few sites that I have access to and session file #'s are regular, around a couple hundred, all with recent dates (within the past 24 hours).

We definitely don't do anything special with them, beyond using the standard PHP session functions as far as permissions are concerned.

The session_cache_expire only deals with the HTTP cache expiration time.

@ini_set("session.gc_maxlifetime",3600);

The line above sets the max lifetime of the session to 1 hour.

Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
My hoster do change on something and I will look closly to it. I come back if this not help. Thanks.


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
maybe I found it. I insert @ini_set("session.gc_probability",1); right in front of @ini_set("session.gc_maxlifetime",3600);
This was set to 0 by default of my server.

now it seems that files get deleted by GC again.


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Thanks for the update Zarzal. I'll probably add that to the base code, just in case anyone else runs into similar issues.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Nightcrawler), 1,165 guests, and 234 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)