PHP page jump after session is empty

Source: Internet
Author: User
Generate Session Loginok.php
 
  '; Echo ' Click to go to Homepage '; Exit ();} else{echo ' Landing failed! Click Back '; }?>
[code=php
Judging index.php


Reply to discussion (solution)

Re-send it, it's messed up.
Generate Session Loginok.php

 
  ' Echo ' clicks into homepage '; exit ();} Else{echo ' Landing failed! Click Back to ';}? >

Judging index.php
!--? php session_start (); Var_dump ($_session[' userid "); if (! isset ($_session[') UserID ']) {echo "Login registration";}  else{$username =$_session[' username '];echo $username. ", Welcome to Logout"; Echo $_session[' userid ']; echo "Login Registration";}  
Two files are placed in the same directory after logging in loginok.php generated session but jump to index.php, anyway, only display login registration

what browser test, Multiple browser tests to see.

IE and Sogou are not available

Firefox and Chrome can not

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