Thanks Ray, I copied that into the shared header file, although am I right that this code sets the sessions to expire after one hour (3600 seconds)? I changed the figure to 10800 to see what would happen and so far so good. I think the client may also have updated their php.ini file though, so not sure which bit of code fixed it!