I have customer using a PHP news script developed by me but hosted elsewhere.
The last days they are starting to have problems loging in.
The script give the following errors:
Warning: session_write_close(): write failed: No space left on device (28)
Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp)
They talk to their host and he makes it work for some time until again it fails, their host says there is something wrong with the script.
I'm not an PHP expert nor a SysAdmin so not sure where's the problem.
I have been developing with DreamWeaver PHP for years and this is the first time it happens, I just use the Login Script behavior included from DreamWeaver, I don't code anything by hand on that area.
So far I have investigated and it seems the /tmp partition is full, I supose a lot of tmp files(sessions aparently) are filling the partition, I have no idea about sessions files and not sure if is related with the script or the server
Do I need to change something in my script?
Are session files being left on the /tmp partition?.. why?
Sounds like sessions in /tmp is not being deleted regularly. Ask the host to install tmpwatch utility.
I see, but, are the sessions not being deleted because of my script or the server?
My script has de LogOut function, but I supose they are like 2-5 current users working all day, so hardly do they need to log out.
Hmm..., actually I think they all use the same user/pass, but different PC.
I was asking this to make sure that is not an issue from my side.