Register & login problem with Safari?

Post here is you are having problems with any of the tutorials.
Post Reply
LoveO
Posts: 4
Joined: Wed Dec 21, 2011 6:53 pm

Register & login problem with Safari?

Post 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?
LoveO
Posts: 4
Joined: Wed Dec 21, 2011 6:53 pm

Re: Register & login problem with Safari?

Post 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?
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Register & login problem with Safari?

Post by jacek »

Can you post your full code ?

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