Skip to content

Titanium Module for clearing cookies from webViews for specified domains

License

Notifications You must be signed in to change notification settings

kosso/TiCookiejar

Repository files navigation

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!

About

Titanium Module for clearing cookies from webViews for specified domains

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published