Jump to content

Login working locally, but not on server


luxe

Recommended Posts

Hey guys,

This is not the first time I've made a login before.  However, I made one for a site with its own user db, and it's not working on the server.

It does however work locally, and on another completely different server I tested it on.

 

This is the server that it's working on:    http://dconstruct.net/test.php

 

And this is the server that it's NOT working on:    http://arboranimalhospital.com/test.php

 

I know that they are versions 5 and 4 respectively, and locally I'm running PHP5...but I did change it back to 4 locally, and it still worked.

 

Im suspecting its the culprit server.....?

 

This is the URL value its giving me on that server "http://arboranimalhospital.com/admin/index.php?accesscheck=%2Fadmin%2Findex2.php"

even when I put the correct username and password that being passed in my users database.

 

Any suggestions?

 

 

Link to comment
https://forums.phpfreaks.com/topic/78274-login-working-locally-but-not-on-server/
Share on other sites

well, the login works locally and on a server running PHP 5--just not on this other server running 4. 

 

So I don't think there's anything wrong with the code at all. It's the server.  And here's the test page for it:  http://arboranimalhospital.com/test.php

 

Is there something that needs to be turned on in the php.ini ?

well forgive me im a noob.....

but this is what it does on the server it's not working on.

 

1) I login with correct username and password.

2) Instead of taking me to the correct page after logging in, it acts as if it failed and gives me this URL value

http://arboranimalhospital.com/admin/index.php?accesscheck=%2Fadmin%2Findex2.php

 

Although it works locally, and on the other server using PHP5.

 

I've attached my code.

 

[attachment deleted by admin]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.