I'm working on a Web page.
Save the value of session_id () in a cookie.
The value of session_id () is then removed from the cookie when it is used.
Re-place the value of session_id () in the session_id () function.
The value of the variable in this session is then found.
But session_id ($_cookie[name]) can not use AH.
What to do?
Reply to discussion (solution)
session_id ($_cookie[name])? Why are you writing this?
session_id ($_cookie[name])? Why are you writing this?
Hello. I think it is by putting the SESSION into the session_id () function to load the ID and then calling the corresponding variable $_session[name]
Hello landlord, your side to determine $_cookie[name] whether there is a value, there is session_id ($_cookie[name]) $_cookie[name] is the "test" this string form exists.
Session cross-domain processing?
I think you have a big round. Directly with $_session[' name '] = xxxxx settings, $_session[' name '] get it?
PHP defaults to save SessionID in Phpsessid name in cookie
If you need to handle it yourself, session_id ($id) needs to be executed before session_start ()
Session_Start (); Open first