I am attempting to put code in login/logout.php, so that when a member logs out they return to the home page of that course not the site home page.
It appears course id is missing, can anyone help!
is your course open to public ? if yes then only you can tweak your code to return to course home page .
yes it is open to the public