I have a file management application whose login process is functioning differently across different browsers. In short, it works correctly in IE6, IE7, Chrome, and Opera 9. However, in FF and Safari it does not.
I have 2 different types of users. "Clients" and "Administrators". In all browsers, after authenticating of the "client" UN' and PW', the user is redirected to the proper location. However, when an "administrator's" credentials are authenticated, that users is logged in but the location they are redirected to is not correct.
PHP Code:
function redirect_to_home()
{
//header('Location: client_upload.php');
if (isAdmin())
{
header('Location: UserAdmin.php');
}
else
{
header('Location: client_upload.php');
}
}
When the user is an administrator, what occurs in both FF and Safari is that the URL to the location is not properly formed.
When logging in the user is located at
Code:
http://www.site.com/fileTransfer/login.php/
Once confirmed as an "administrator", in FF & Safari they are sent to
Code:
http://www.site.com/fileTransfer/login.php/UserAdmin.php
rather than the correct location of
Code:
http://www.site.com/fileTransfer/UserAdmin.php
(again: which does occur correctly in IE6, IE7, Chrome, and Opera 9)
Odd to say the least...any clues?
Thanks