Why is there a problem with the php session? Thank you for your help?

Source: Internet
Author: User
Why is there a problem with the php session? Thank you for your help? Previously, it was okay, but after modification, session. save_path = "D:/session"
This is the case. please help me. thank you!


Reply to discussion (solution)

In session? Before the start, there were ??? Out, first? Check your generation? Put ?? Exclude

Check whether the session directory in drive d exists.

D:/does the session exist? Limit ??

In session? Before the start, there were ??? Out, first? Check your generation? Put ?? Exclude



It can be used before the session is changed. the code has not been changed. if there is no output before, a header (...) is returned (.....)
Session files exist on disk D.
The permission is root.

Why modify the value of session. save_path? try again.

Why modify the value of session. save_path? try again.


What is the default value? Forgot.

The default value of session. save_path is/tmp, which is the temporary file directory of the operating system.
You can leave this parameter unspecified (comment out session. save_path)

If this parameter is set, you must ensure that the directory has full control permissions for general users.

This can occur in all files with session_start (). you can remove session_start. I can't comment out the configuration file and change "D:/session" to/tmp. what's wrong? No problem in the past?

It seems that no output exists before session_start,

It seems that no output exists before session_start,



There is no output before. it can be used in the past and cannot be used now. I don't know if the path of the session has been changed.

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.