Working Of Php sessions [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
开发者_如何学C Improve this questionI am new to php and I want to understand the working of sessions in php ? I know this is very easy, but i am new . Please give some answers ?
session are used to track the value to another page we use session_start() to start the session, session_destroy() is used for destroy the session
whenever we start session it generate session id
http://w3schools.com/php/php_sessions.asp use this link for more detail
I'd add that $_SESSION is an array exclusively associated with a given user's session in which you can store all kind of data
$_SESSION['test1'] = 'foo';
$_SESSION['test2'] = array('foo','bar');
$_SESSION['test3'] = array('foo' => array('foo1'=>'bar1','foo2'=>'bar2'));
$_SESSION['test3']['foo']['foo3'] = new Imagick($file);
精彩评论