Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 86 | All time: 10,018 This week: 660 |
Version | License | PHP version | Categories | |||
session-path 1.0.0 | GNU General Publi... | 5 | PHP 5, User Management |
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.
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
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.