Setting Session Path in Apache server using PHP
In PHP we can set user defined session storing path. The session value are written in file. By using the below code you can specify the custom file location.
define("_PATH_TMP", dirname($_SERVER['SCRIPT_FILENAME']) . "/../tmp");
ini_set('session.save_path', _PATH_TMP);
The above code should in top of the page
