Set Session Path in PHP

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

Related Topic What is OSI Model and its Layers in Communication System
JSP Page Directive for Translation Unit
List of Mysql Error Code and Description
Basic Linux Commands
How to Download File command Line
PHP 2011   Privacy Policy  Terms of Service  Feedback