thinkphp Project Background Login related issues, strange things

Source: Internet
Author: User
thinkphp Project Background Login problems, strange things
This post was last edited by cjq001 on 2014-09-28 15:46:40

Thinkphp's project, met with a strange thing,
Local Environment Click Login, smoothly into the background;
Virtual space of the site, click Login, unable to enter the background, no error, flash a bit still stay in the login box;
followed, the following statement was also executed:

$this->display (' login ');

Local: The function is then executed:

Public Function login () {

But in virtual space debugging, there is no execution of the above functions. The same database, code, why this? Please advise!
------to solve the idea----------------------
I'm afraid this is not the login thing, and then the context to see
------to solve the idea----------------------
Do you have the code to judge the session in the background? Remove that and see if you can get in.
------to solve the idea----------------------
What is the page jump code after you click login?
------to solve the idea----------------------
Empty the Runtime directory and try Again

If
Public Function logout () {
will be executed to that obviously you're mistaken URL
Logout is logout!
------to solve the idea----------------------
Please open a test page on the virtual machine:

Session_Start ();
if (Empty ($_session[' time '))) {
$_session[' time ' = time ();
}
echo $_session[' time ';
?>

Constantly refresh the test page to see if there is any output time and see if the time is changing.
If time is changing, your server is not configured for session.
------to solve the idea----------------------

echo $_session[c (' Session_admin_name ')? $_session[c (' Session_admin_name '): "NULL";
?>

Look at the difference between the outputs in the two environments, you can always come out with this kind of clues.
  • 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.