I am using the php include and when I use the code provided, if the user is not logged in they get redirected to the login screen. On my site I have a front page made in php that accesses a database, where I would like a login box (like most sites have). If the user is logged in it shows 'hi user' and if not logged in the login box will be displayed. the current way with that include I put in, if the user is not logged in they get sent to the log in page and I don't want that to happen. help! thanks.