Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (3) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2021-12-28 (17 days ago) | Not yet rated by the users | Total: 39 This week: 2 | All time: 10,290 This week: 89 |
Version | License | PHP version | Categories | |||
session-path 1.0 | GNU General Publi... | 5 | PHP 5, User Management |
Description | Author | ||||||||||||||||
This package can start sessions assuring the save directory exists. Innovation Award
|
|
This package is used to start session and set session path.
By default, server settings are referenced. If the settings are sent to the project's __construct
method, these settings take effect.
Out-of-class use:
code:
require_once('Mind.php');
$m = new Mind([
'session'=>array(
'path'=>'./session/',
'status'=>true
)
]);
$m::aliyilmaz('session')->start();
When using it in the class:
code:
self::$conf = [
'session'=>array(
'path'=>'./session/',
'status'=>true
)
];
self::aliyilmaz('session')->start();
It must be run before the session initialization method, it can be used as a chain.
Out-of-class use:
code:
require_once('Mind.php');
$m = new Mind();
$m::aliyilmaz('session')->setPath('./session/')->start();
When using it in the class:
code:
self::aliyilmaz('session')->setPath('./session/')->start();
Out-of-class use:
code:
require_once('Mind.php');
$m = new Mind();
$m::aliyilmaz('session')->start();
$_SESSION['user'] = [
'username'=>'aliyilmaz',
'id'=>1
];
print_r($_SESSION);
When using it in the class:
code:
self::aliyilmaz('session')->start();
$_SESSION['user'] = [
'username'=>'aliyilmaz',
'id'=>1
];
print_r($_SESSION);
output:
Array ( [user] => Array ( [username] => aliyilmaz [id] => 1 ) )
This package has no dependencies.
Instructions and files in this directory are shared under the GPL3 license.
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.