NationGamer Posted December 17, 2010 Posted December 17, 2010 well the problem is im trying to make login page reconize the current session so like if users is logged in then when they visit the login page or signup they get redirect strait back to the main index page i have tried a couple things but none seem to work could someone pease help me with this and possibly show me how to do this thanks. Quote
Equinox Posted December 17, 2010 Posted December 17, 2010 <?php session_start(); if(isset($_SESSION['loggedin'])) { header('Location: home.php'); } ?> Something like that? Quote
NationGamer Posted December 17, 2010 Author Posted December 17, 2010 thanks man worked like a charm i tried something like that but i think i left the session_start(); code out and obviously quite important lol Quote
Equinox Posted December 17, 2010 Posted December 17, 2010 Thought that might of been the case, no problem. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.