Page 1 of 1

Register & login problem with Safari?

Posted: Mon Feb 20, 2012 8:12 pm
by LoveO
Hello everyone!

I followed the register and login tutorial and it works well, in firefox and explorer. The problem is that it seems to be some kind of problem when setting the session because everything just stops there, i.e. at the row with $_SESSION['username'] = htmlentities($_POST['username']);

When I say that everything stops, I mean that the header('Location: index.php'); line is not executed.

The session is set though, when I go to index.php manually.

I've tried to include the complete address instead of just index.php, but it still won't work. And as I said, it runs great in firefox and explorer.

Any ideas?

Re: Register & login problem with Safari?

Posted: Tue Feb 21, 2012 5:42 pm
by LoveO
Correction: It is the header('Location: index.php'); that doesn't work.

die(); is right after. If i make echo's right before and after the redirection, both are visible. If I make an echo after the die();, nothing is shown.

Any ideas?

Re: Register & login problem with Safari?

Posted: Tue Feb 21, 2012 10:10 pm
by jacek
Can you post your full code ?

I cant really see why Safari would ignore than header :s