This topic is locked
[SOLVED]

 Redirect after Logout

1/28/2011 10:09:10 AM
PHPRunner General questions
B
btman author

Hi

I know this question has been asked in a couple of threats but no specific answer was given that was helpfull to me. I want people to be redirected to the index.html page which is 1 directory higher.

Since I'm not very familiar (if at all) to write php code and there is no seperate logout event to be used, could you please tell me, if possible in an example, the exact code to be entered after this line:

=="logout") ?
Thank you for your assistance.

Ben

Admin 1/28/2011

Here is your code:

header('Location: http://www.example.com/index.html';);

exit();
B
btman author 1/28/2011



Here is your code:

header('Location: http://www.example.com/index.html';);

exit();



Thanks Sergey for the quick response.

Works like a charm. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=56133&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />

Ben