Jump to content

Recommended Posts

I've got a login script that checks the details entered if no errors occur it does a meta refresh to the main page.

 

It's working fine on my dev box in firefox and ie6 but as soon as i upload it it only works in firefox. IE6 just does a refresh to the same page. Can't understand why it would do that.

 

my code is

 


if ($logged_in == false && $_SESSION['error'] == ""  )
{
	dispalyLogin();

}
elseif ($logged_in == true)
{
	echo "<meta http-equiv=\"Refresh\" content=\"0 ;url=./altsource.php\">";
}

 

any ideas? Or alternative ways of doing it.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/38614-meta-refresh-after-login-not-working/
Share on other sites

cheers that works but strangely enough only on my dev box as soon as i upload it ie6 still won't work. I've changed to the header method rather than refresh as well. I can't understand why ie would do that and not firefox.

 

The site is www.alternatesource.co.uk

 

cheers

 

 

no errors just looks likes its refreshed clears the form and remains on the same page.

 

Find it very strange how it works fine on IE on my pc's apache but online it freaks out.

 

Will check it on another pc today and see what it does.

 

Cheers

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.