Php session verification error solution

Source: Internet
Author: User
Tags php session
An error occurred while verifying the session in php. & lt ;? Php & nbsp; session_start (); if (! Isset ($ _ SESSION ['admin _ cking']) {$ _ SESSION ['admin _ cking'] = array (); unset ($ _ SESSION [php verification session error
Session_start ();
If (! Isset ($ _ SESSION ['admin _ cking']) {
$ _ SESSION ['admin _ cking'] = array ();
Unset ($ _ SESSION ['admin _ cking ']);
Session_destroy ();
Echo "script" alert ('Tips: \ n Dear administrator, the system automatically stops the operation because you have not performed the operation for a long time, click OK to log on again. '); Location. href = 'admin _ logstores. php' script ";
Exit;
}
?>

The running result of this code is blank.

It won't jump even if it doesn't pop up.

Where is the error? thank you!

------ Solution --------------------
Echo "script" alert ('Tips: \ n Dear ......

Double \ escape
------ Solution --------------------
No, I have all run.
------ Solution --------------------
Most of your program files have BOM headers.

Enable the error display function to view the cause.
Related Article

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.