开发者

linkedin logout issue

开发者 https://www.devze.com 2023-02-07 12:17 出处:网络
I am logged into my application with linkedin connect, but on logout i logs out of the application and not linkedin. I want user to log out of bot开发者_如何学Ch linkedin and my application

I am logged into my application with linkedin connect, but on logout i logs out of the application and not linkedin. I want user to log out of bot开发者_如何学Ch linkedin and my application

Facebook have provide an option for the same as below

http://m.facebook.com/logout.php?confirm=1&next={domain url}

IF any one know the same thing with linkedin, It will help me a lot.

Thanks in advance


I have been in trouble for this log out from linkedin for quite sometime but finally found a way out. I have placed my log out link code here:

<a onclick='IN.User.logout(
function redirect()
{
window.location = "logout.php";
}
);'
href="javascript:void(0)">
Log Me Out
</a>

onClick of the logout button, I have called "IN.User.logout" and on its callback, I have given control to the function which redirects to log out script (logout.php in this case) where I log the user out of my system.

I think this should help most of people here.

0

精彩评论

暂无评论...
验证码 换一张
取 消