开发者

how many ways we can get the value of current session id in php

how many 开发者_Python百科different ways can we get the value of current session id in php?


We can get the value of current session with the use of session_id() returns the session id for the current session.

Apart from session_id, we can retrieve it using SID constant in PHP6.

Also look at : PHP-sessions

Hope this helps.


You might want to check the php manual for session id. There are links to related functions as well :)


To see all available SESSION I use the following code:

foreach($_SESSION as $k=>$v)
   echo "$k=>$v<br/>";

Above code will be helpful when you are working with lots of SESSION variables.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜