problem with redirect
Posted: Tue Mar 11, 2008 5:37 pm
Hey guys, just moved my site from local to webserver and i have the following problem
My logout link does 2 things
1. Log user out of forum phpbb
2. Log user out of main site
This is achieved by loading one url then applying a redirect, however now that i have moved this from my local machine to the online webserver, when i click logout it is pointing the user to localhost
link to my site - http://www.hookedonpike.co.uk/index.php
test details - username - test1 password - qwerty
the code for my logout link looks like this
Anyone know an easy way to fix, wrecking my head as im new to php
My logout link does 2 things
1. Log user out of forum phpbb
2. Log user out of main site
This is achieved by loading one url then applying a redirect, however now that i have moved this from my local machine to the online webserver, when i click logout it is pointing the user to localhost
link to my site - http://www.hookedonpike.co.uk/index.php
test details - username - test1 password - qwerty
the code for my logout link looks like this
Code: Select all
$appendLogout = append_sid($phpbb_root_path . 'login.php?logout=true&redirect=http://www.hookedonpike.co.uk/logout.php&sid=' . $userdata['session_id']) ;