Okay, here's some code. I want to say this first to clarify what I've done. On my page www.sobf.net under board navigation there is a link for Teamspeak. I have that link pointed at a php file auth.php the code is this:
<?php
if($_SESSION['loggedin'])
header('Location: teamspeak.php');
else
header('Location: login.php');
?>
If not logged in it appropriately directs me to the login page. If logged in it directs me back portal.php not teamspeak.php. I'll can't post the teamspeak.php code, it's too long.
Hope this helps you help me.
thank you