When the user comes to the page, I can check the session variable and send them elsewhere if necessary.
However, if you come to a page and are not logged in, there is a form to input your username and password.
You click the Login button, at this point I cannot use the header command since the form is already displayed. After the login I want to send them to another page.
I output login information based on the user's last login, but for some reason to get the correct data outputted I have to manuall refresh the page. When I get home maybe posting some code will be easier to explain the issue.
Thanks!