My OSX application is required for authentication based on Kerberos protocol. For login I'm using WebView (and WKWebView for MAC OSX > 10.9) by load the authorization URL request.
The login works as expected, but it remains logged in until I log out from my computer or killing my application. It means that at the next time I load the authorization URL request then I logged in automatically without being promoted to insert my user & password.
Before I load the authorization URL I delete the cookies from [NSHTTPCookieStorage sharedHTTPCookieStorage].
How can I log out?
My solution is to close my application by:
[NSApp terminate:self];
A better solution will be to relaunch the app but this is enough for me right now.