How to handle session_id ()

Source: Internet
Author: User
Session_id () is a web page. Save the session_id () value in the cookie. Then, the session_id () value is retrieved from the cookie when it is used. Put the session_id () value in the session_id () function again. Then find the value of the variable in this session. However, session_id ($ _ COOKIE [name]) cannot be used. What should I do? ------ Solve session_id ()
I am creating a webpage.
Save the session_id () value in the cookie.
Then, the session_id () value is retrieved from the cookie when it is used.
Put the session_id () value in the session_id () function again.
Then find the value of the variable in this session.
However, session_id ($ _ COOKIE [name]) cannot be used.
What should I do?
------ Solution --------------------
Session_id ($ _ COOKIE [name])? Why?
------ Solution --------------------
Hello, you have determined whether $ _ COOKIE [name] has a value, and also in session_id ($ _ COOKIE [name]). whether the $ _ COOKIE [name] of exists in the string form of "test.
------ Solution --------------------
Session cross-origin processing?

------ Solution --------------------
How do you think you have taken a big round. Set it directly with $ _ SESSION ['name'] = XXXXX. can I retrieve $ _ SESSION ['name?
------ Solution --------------------
By default, php saves the sessionid as the PHPSESSID name in the cookie.
If you need to handle it yourself, session_id ($ id) needs to be executed before session_start ().
------ Solution --------------------
Session_start (); enable

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.