An open API service indexing awesome lists of open source software.

https://github.com/kosso/ticookiejar

Titanium Module for clearing cookies from webViews for specified domains
https://github.com/kosso/ticookiejar

Last synced: 2 months ago
JSON representation

Titanium Module for clearing cookies from webViews for specified domains

Awesome Lists containing this project

README

        

cookiejar Titanium Module
=========================

Run ./build.py to create the module zip file.

## Description
Enables the abilty to clear cookies for specified domains from webviews. This is often required for webView based third party sites like Twitter/G+ etc. to totally log out of their various intent windows and accounts etc.

## Accessing the cookiejar Module
To access this module from JavaScript, you would do the following:

var cookiejar = require("com.kosso.cookiejar");
The cookiejar variable is a reference to the Module object.

## Reference
var cookiejar = require('com.kosso.cookiejar');
Ti.API.info("module is => " + cookiejar);
// This will log a user out of their Google account in a webview, if no logout option is available (often the case).

cookiejar.clearWebViewCookies('.google.com');
cookiejar.clearWebViewCookies('.google.co.uk');
cookiejar.clearWebViewCookies('accounts.google.com');

## Author

Kosso

## License
FREEDOM BABY!