开发者

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

开发者 https://www.devze.com 2023-02-07 12:42 出处:网络
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 s

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

精彩评论

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