Web Hosting Talk







View Full Version : php login frustrations


WiredMom
03-15-2006, 10:05 AM
I have a video script that has an admin panel.
I'm trying to reinstall it on another site/server - and everything looks like its a perfect mirror of the original.
However - when I login to the admin and click on any link - it kicks me out to the login screen again.

Its driving me nuts.
Its using smarty fo templates and such...but still..
Any ideas?
Thanks

orbitz
03-15-2006, 12:23 PM
check on the configuration of the video script - make sure you've made all the changes for the new website.

Korvan
03-15-2006, 12:38 PM
It is not persisting your session with the server.

Make sure the cookie information is set right.

saidev
03-16-2006, 02:00 AM
Another place to check is register_globals, before PHP version 4.2.3, it is turned on by default but version after that is off by default.

w3bdesign
03-16-2006, 06:17 AM
You should check your php.ini and look for the register_globals setting as saidev mentioned.
Make sure it's set to on and not off.

stormraven
03-16-2006, 09:34 AM
Are you using IIS? It has some quirky behaviour if you call header("Location: blah blah blah") for your redirects.

After you make that header call, you must call exit() or it simply won't work like you want it to.

Saeven
03-16-2006, 11:24 AM
Cecilia, are you using a subdomain for your login? Please give more info, IIS, or Apache, etc.

Zaitech
03-16-2006, 05:55 PM
Make sure that you aren't using the same variable name as a session name, at least in 4.0 (I think it was either 4.0 or 4.4 where session variables could be written as just variables IE: $user would also be $_SESSION["user"]). This happened to me before, I had one variable of the session and another variable that would reset because it had nothing it in when it passed through the website.

Just make sure your variables and your session IDs are different, especially on pre4.4.