Java Code Examples for com.google.gwt.user.client.Cookies#removeCookie()

The following examples show how to use com.google.gwt.user.client.Cookies#removeCookie() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CookiesManager.java    From document-management-software with GNU Lesser General Public License v3.0 5 votes vote down vote up
/**
 * Removes the cookies that store the session ID
 */
public static void removeSid() {
	try {
		Offline.remove(COOKIE_SID);
		Cookies.removeCookie(COOKIE_SID);
		Cookies.removeCookie(COOKIE_JSESSIONID);
	} catch (Throwable t) {

	}
}
 
Example 2
Source File: CookiesManager.java    From document-management-software with GNU Lesser General Public License v3.0 5 votes vote down vote up
/**
 * Removes the cookies used to handle the login
 */
public static void removeLogin() {
	try {
		removeSid();
		Cookies.removeCookie(COOKIE_FAILURE);
	} catch (Throwable t) {

	}
}
 
Example 3
Source File: WalkthroughManager.java    From gwt-material-addins with Apache License 2.0 5 votes vote down vote up
public static void unregister(String userName, String appName) {
    String value = Cookies.getCookie(userName);

    if (appName.equals(value)) {
        Cookies.removeCookie(userName);
    }
}
 
Example 4
Source File: WebServiceSession.java    From swellrt with Apache License 2.0 4 votes vote down vote up
@Override
public void destroy() {
  Cookies.removeCookie(SESSION_COOKIE_NAME);
  Cookies.removeCookie(TRANSIENT_SESSION_COOKIE_NAME);
  account = null;
}
 
Example 5
Source File: Html5ApplicationCache.java    From gwt-appcache with Apache License 2.0 4 votes vote down vote up
private void enableAppCache()
{
  Cookies.removeCookie( DISABLE_MANIFEST_COOKIE_NAME );
}
 
Example 6
Source File: GwtCookieModel.java    From core with GNU Lesser General Public License v2.1 4 votes vote down vote up
public void removeCookie(String name) {
  Cookies.removeCookie(name);
  cookies.remove(name);
  listeners.cookieRemoved(name);
}
 
Example 7
Source File: Preferences.java    From core with GNU Lesser General Public License v2.1 4 votes vote down vote up
public static void clear(Key key)
{
    Cookies.removeCookie(AS7_UI +key.getToken());
}