Does anyone know of a way to use sessions and still be able to redirect with the header function. In the code below I test for the existence of the PHPSESSID and send the user to register if it doesn't exist. If it does exist I start a session to retrieve the session variables then call a class that tests for other conditions. If the test is successful then I try to redirect which fails because (as I understand it) session_start has already sent headers. I really don't like putting links on pages that say "Click here to continue" so I'm looking for a solution. Any ideas? <? if (!isset($PHPSESSID)){ header("Location:http://www.blah.com/register.php"); } session_start(); if ($action == "update"){ include("../includes/update_class.php"); $my=new update_listing(); header("Location:http://www.blah.com mem_welcome.php?sid=$PHPSESSID"); } ?> JS Plauche -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]