I am working on a tool which uses PHP, MySQL, and it accesses a user's ASANA profile. A user is authenticated using OAuth 2.0 with ASANA API.
The application is working fine, the only issue is the logout functionality. I am able to logout from my application, but I can't erase the cookies set by ASANA. (It's okay for personal computers, but in case of public computers it can create issues.)
How do I logout the user from ASANA while he/she logs out of my application? I tried other posts and saw some solutions for Google API and Facebook API where members recommended using API's logout links.
I couldn't find any such thing for ASANA. The direct logout link: https://app.asana.com/-/logout works fine, but then I am not able to redirect it to my application. Any suggestions would be a great help.
Code for current logout functionality:
<?PHP
include_once '../dbAPI/dbconnect.php';
session_start();
mysqli_close($conn);
session_destroy();
header("Location: https://app.asana.com/-/logout")
?>
Thanks;