Let me talk about the SESSION.

Source: Internet
Author: User

Under WIN32, I wonder why PHP4 is always faulty when processing absolute paths. These settings are concentrated on extension_dir, upload_tmp_dir, and session. save_path. No matter how you set them, I set them to./, so I can do it.
But the problem comes again. Session. save_path: The Path corresponds to the currently executed PHP file. Therefore, when you use SESSION, if you change to another directory, this SESSION will no longer exist.
Of course, these do not exist in LINUX. Because/tmp can be used in LINUX.
So I think we can solve this problem with this brother. First, check your PHP. INI content. Change session. save_path ./. Then, your program has some problems. I added some comments. You can try again.
<? Php
Session_register ("abc"); // assign values to the variables before executing some functions.
$ Abc = "abcdefg"; // this sentence should be put in front.
Header ("Location: go. php ");
?>
//////////////////////////////////////// //
// Go. php
<? Php
Session_register ("abc"); // This sentence is not required.
Echo "you are". $ abc ."";
?>

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.