开发者

linkedin logout issue

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜