PHP sessionsetsavehandler Manual.Ever since we upgraded to PHP 5.Regularly when session garbage collection was triggered, permissions errors would be thrown.This is due to the fact that garbage collection is triggered by visitors to a website based on the session.As these processes are owned by Apache but the directory in which the files reside is owned and readable only by root, the Apache processes clearly cannot list the files in the session directory to work out what to delete.Changing the ownership and permissions on the directory is a no no for security reasons, which leaves you with the option of turning off PHP based garbage collection and writing your own, or moving away from using files.For some reason, when we turned off garbage session.The initial approach which most people on php.PHP using My. SQL, which is not a bad approach as you can use a memory based My.SQL table to gain performance.However it requires you to write code, and also to modify your website to put in the session handler override code.If you have lots of website to change this is out of the question.Php Serialize Array For Mysql Create' title='Php Serialize Array For Mysql Create' />
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2017
Categories |