Danny620 Posted January 17, 2011 Share Posted January 17, 2011 <?php if (isset($_SESSION['first_name'])) { echo "<div id=\"login_status\">Welcome, Daniel | <a href=\"BASE_URL sm-login/panel\">My Account</a> | <a href=\"BASE_URL sm-login/logout\">Logout</a></div><!-- Show If Logged In -->"; } ?> this is my code but BASE_URL is a define variable containing = http://localhost/ when i run the script php treats it as just BASE_URL e.g. BASE_URL%20sm-login/pane.php not http://localhost/sm-login/panel.php i know the define is working cos i echo it out earlyer Link to comment https://forums.phpfreaks.com/topic/224770-sessions-and-define-function/ Share on other sites More sharing options...
Danny620 Posted January 17, 2011 Author Share Posted January 17, 2011 fixed Link to comment https://forums.phpfreaks.com/topic/224770-sessions-and-define-function/#findComment-1161060 Share on other sites More sharing options...
Maq Posted January 17, 2011 Share Posted January 17, 2011 fixed Do you care to share in case someone experiences a similar issue? Link to comment https://forums.phpfreaks.com/topic/224770-sessions-and-define-function/#findComment-1161061 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.