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.