I posted this in developer help yesterday, but this might be a more appropriate group.
Maybe I'm misunderstanding these - but I'm getting odd things going on with PHP sessions and sugar (5.2 pro).
I'm running tracker session reports - and collating amassed seconds per month and some users are coming up with huge numbers (you'ld think they were working 24 hours a day).
Looking at the tracker_sessions table, some sessions are days in length (looking at the date_start and date_end values).
I've confirmed that the OS (Linux Ubuntu Server 6.10 LTS) is running the php session killing script:
and this appears to be working.Code:# Look for and purge old sessions every 30 minutes 09,39 * * * * root [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | x args -r -0 rm
Sugar is running the updateTrackerSessions script so anything not active for 20 mins will be marked inactive.
But something is still holding the sessions open. I've noticed that even my current session has been online for 12 days but I've old just logged on!!!!
I've tried the following:
1. Note my session ID and confirm it's the one in the tracker_session table.
2. Go to /var/lib/php5 and delete the session_id
3. confirm that it's logged me off of sugar.
4. Check the tracker_session table (optionally, set active to 0 for that session).
5. Log back on.
This results in php recreating the same session file in /var/lib/php5 with the same ID. On using sugar, it continues to accrue tracker_session stats against the 12-day old record.
For some reason, it looks like either PHP or Sugar is creating an identical session record even though it's been deleted previously. Is this normal behavior?
Thanks,
Steve


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks