PHP Validation Session Invalid problem solving method _php Tutorial

Source: Internet
Author: User

PHP Validation session Invalid problem resolution


Environment, I'm using the apache+php environment.

such as my program code is as follows

The code is as follows




Processing files After submission this post.php file

if ($_session[' Ssioner ']!= $ssever) {
Echo (""); exit;
}

It was found that the verification code must be composed of 4 digits, and I will print out the session

echo $_session[' Ssioner '];exit;

Always empty, when I think of the PHP environment configuration of a session file directory, now we find the php.ini configuration file found

Upload_tmp_dir

Find this directory is

Upload_tmp_dir= "D:\WWW.111CN.NET\TP"

I check my d disk found only www.111cn.net file and no TP directory, so the problem is found, when I create a TP directory, restart Apache found in the TP directory has sess_i40gl0p4hfep5r69j67o1k26d01 file, This re-login has been successfully found.

http://www.bkjia.com/PHPjc/884224.html www.bkjia.com true http://www.bkjia.com/PHPjc/884224.html techarticle PHP Validation Session Invalid Problem Resolution environment, I use the apache+php environment like my program code below the code below input name=username type=text class=input id=username INP ...

  • 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.