fullyloaded Posted May 16, 2009 Share Posted May 16, 2009 hi i was wondering if this is possible if some one where to click on this link hxxp://www.mysite.com/index.php it will take them to my home page what im trying to do is when they click on hxxp://www.mysite.com/index.php it will also log them out of my forum witch would be this link hxxp://www.mysite.com/forum/index.php?logout=yes and continue to hxxp://www.mysite.com/index.php without showing hxxp://www.mysite.com/forum/index.php?logout=yes hope you know what im talking about lol thanks... Link to comment https://forums.phpfreaks.com/topic/158397-solved-is-this-possible/ Share on other sites More sharing options...
Porl123 Posted May 16, 2009 Share Posted May 16, 2009 <? if($_GET['logout'] == 'yes') { session_start(); session_destroy(); header("Location: index.php"); } ?> Like that? Link to comment https://forums.phpfreaks.com/topic/158397-solved-is-this-possible/#findComment-835345 Share on other sites More sharing options...
fullyloaded Posted May 16, 2009 Author Share Posted May 16, 2009 yes i think so my site is using html templates with the .php so it would be like this index.php and index.html do i need to add anything in the template file to get this to work? thanks for your help Link to comment https://forums.phpfreaks.com/topic/158397-solved-is-this-possible/#findComment-835357 Share on other sites More sharing options...
fullyloaded Posted May 16, 2009 Author Share Posted May 16, 2009 thanks got it the code worked!! Link to comment https://forums.phpfreaks.com/topic/158397-solved-is-this-possible/#findComment-835435 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.