Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
7 registered (smallufo, SteveS, sampsonzurich, Bjab, FordDoctor, Stan, Pilgrim), 27 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 05/17/12
Posts: 3
Top Posters (30 Days)
Ruben 51
Gizmo 24
DennyP 24
Dunny 15
SteveS 14
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#211680 - 05/10/08 03:20 AM trouble with session directory
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
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?


Edited by Zarzal (05/10/08 03:22 AM)
_________________________
my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#211726 - 05/11/08 05:00 AM Re: trouble with session directory [Re: Zarzal]
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
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.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
#211729 - 05/11/08 06:05 AM Re: trouble with session directory [Re: Zarzal]
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
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.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
#211732 - 05/11/08 08:01 AM Re: trouble with session directory [Re: Zarzal]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
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.
Top
#211738 - 05/11/08 10:01 AM Re: trouble with session directory [Re: Ian]
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
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.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
#211745 - 05/11/08 10:53 AM Re: trouble with session directory [Re: Zarzal]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
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.
Top
#211762 - 05/11/08 12:17 PM Re: trouble with session directory [Re: Rick]
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
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.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
#211774 - 05/11/08 03:34 PM Re: trouble with session directory [Re: Zarzal]
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
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.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
#211892 - 05/12/08 04:06 PM Re: trouble with session directory [Re: Zarzal]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Thanks for the update Zarzal. I'll probably add that to the base code, just in case anyone else runs into similar issues.
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Due Date Calculator-Calculate When Your Baby is Due
by StewartMyduedate
12:54 AM
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image