There is a problem with PHP session, how do you get back? Beginner, would you please help me?

Source: Internet
Author: User
I used to, but after we changed it, Session.save_path = "D:/session"
This is the case, but also ask you to help the great God, thank you!


Reply to discussion (solution)

There was??? before the session. Go ahead, check your generation. Ruled out

Please check if the Session directory is present under the D drive.

Does the d:/session exist and have limitations??

There was??? before the session. Go ahead, check your generation. Ruled out



Before changing the session can be used, the code has not changed Ah, the front of no output on a header (...)
Session file exists on D disk
Permissions are root

Why change the value of Session.save_path, change back to try.

Why change the value of Session.save_path, change back to try.


What is the default value? Forgot.

The default value for Session.save_path is/tmp, which is the temporary file directory of the operating system
Can not be set (comment out Session.save_path)

If set, you must ensure that the directory has full control of the general user

As long as there are session_start () files will appear this situation, remove the session_start () on it. Comment out the configuration file and change the "d:/session" to/tmp or not, where is the problem? Was that a problem before?

It seems that there is no output in front of session_start ()

It seems that there is no output in front of session_start ()



There is no output, previously can be used, now do not, do not know whether to change the session of the path problem
  • 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.