Ok I am having somewhat of a brain fart, I thought that if I write it out I might be able to solve it, if not I will ask you guys.
Ok so I have a home page... at the top I include /login/login.php
(This is the Auth user system from code library here at phpbuilder)
So it includes login.php
in login.php it prints out the login form and then is submitted to php_self so it goes back to index.php and includes login.php if the $_POST['user_name'] is set it calls the function user_login, and will set the cookie if all of the criteria is met, so then I should be able to say if (!user_isloggedin()) { don't show login form}
It will do this only if I refresh the page after I log in. It is verifing that I logged in cause it gives me a "you are logged in" message, but I can't access the cookie immediatly after it is set, I have to refresh the page, why is this?
Well I think that is the short and dirty of it, any help would be wonderful, thanks
Damian