Page 1 of 1

Problems with sessions ?

Posted: Thu Sep 25, 2003 10:49 am
by RedRasper
Hello All,

Have a problem, I run a log in page, which works fine, but I have moved the new newsest version of php, and now when you click a link inside the logged in area, it seems to act like you're not logged in and takes you back to the log in area.

The code to check is :

Code: Select all

<?php

ob_start();
session_start();
if(!$_SESSION['auth'])	{
	header("login.htm");
	die();
}
ob_end_flush(); 

?>

Does anyone have any ideas?

Cheers

RedRasper

Posted: Thu Sep 25, 2003 6:33 pm
by tsg
I have a site with a log in area and have come to discover that some pop-up blocker programs cause this same problem.

Really don't know the answer to your question, but if you are running a pop-up blocker ... might want to see if it is that ... maybe save some hairpulling.

Tim

Posted: Fri Sep 26, 2003 2:33 am
by RedRasper
Hi!

Thank for the reply...I found what my problem was...My code is domain specific, so when I moved the domain over, and and tested just on the ip address, it wouldn't work as it wasn't the right domain.

Feel alot better now its working!

RedRasper