开发者

Working Of Php sessions [closed]

开发者 https://www.devze.com 2023-02-02 13:15 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

I 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);
0

精彩评论

暂无评论...
验证码 换一张
取 消