Losing session variables on header

If I use a header redirect I am losing my session variable. In the following two code blocks, the first one will pass the session variable to the page and the second one does not. In both cases, if I add a session var on the opened page, it will read it on that page.


       $_SESSION['processed'] = 'Y';
	include 'main2.html.php';
	exit();


        $_SESSION['processed'] = 'Y';
	header('Location: ' . $_SESSION['uwserver'] . '/main2.html.php');
	exit();

Any ideas where I need to look to find what is causing that?

The value of $_SESSION[‘uwserver’] is “http://myapp.com

Ignore this for now. I think my problem has to do with storing the session vars in a file and the correct permissions on the file.