Why does the system log you out sometimes when posting?
I’ve had it happen on occasion, it’s probably the browser cache, I’m no expert however. I will have a read to see if I can find out.
Assuming the system is setup as should with sufficient times:
ini_set(‘session.gc_maxlifetime’,xxxx’);
ini_set(‘session.gc_probability’,1);
ini_set(‘session.gc_divisor’,1);
xxxx number of seconds or could be defined in minutes if another calculation line exists. However this needs to be set at the default value of the server.
To find out what the default session time out on the server is using ini_get command:
ini_get(‘session.gc_maxlifetime’);
I would also guess the system is set up to send an ajax call to the server every x time to keep its connection.
It could also be down to certain cookie expiration requiring setcookie command (name, expiration)
However given it only happens occasionally after being logged on for a while, could be down to the ISP changing something drastically since the last time active.