/** * Clear the lang for the current user. * * @deprecated Deprecated as of 2.7.0. Use {@link MessagesApi#clearLang(Result)}. */ @Deprecated public void clearLang() { this.lang = null; scala.Option<String> domain = sessionDomain(); response.discardCookie(messagesApi().langCookieName(), sessionPath(), domain.isDefined() ? domain.get() : null, messagesApi().langCookieSecure()); }
/** * Clear the lang for the current user. * * @deprecated Deprecated as of 2.7.0. Use {@link MessagesApi#clearLang(Result)}. */ @Deprecated public void clearLang() { this.lang = null; scala.Option<String> domain = sessionDomain(); response.discardCookie(messagesApi().langCookieName(), sessionPath(), domain.isDefined() ? domain.get() : null, messagesApi().langCookieSecure()); }
/** * Clear the lang for the current user. * * @deprecated Deprecated as of 2.7.0. Use {@link MessagesApi#clearLang(Result)}. */ @Deprecated public void clearLang() { this.lang = null; scala.Option<String> domain = sessionDomain(); response.discardCookie(messagesApi().langCookieName(), sessionPath(), domain.isDefined() ? domain.get() : null, messagesApi().langCookieSecure()); }
/** * Discard a cookie on the given path and domain that's not secure. * * @param name The name of the cookie to discard, must not be null * @param path The path of the cookie te discard, may be null * @param domain The domain of the cookie to discard, may be null */ public void discardCookie(String name, String path, String domain) { discardCookie(name, path, domain, false); }
/** * Discard a cookie on the given path and domain that's not secure. * * @param name The name of the cookie to discard, must not be null * @param path The path of the cookie te discard, may be null * @param domain The domain of the cookie to discard, may be null */ public void discardCookie(String name, String path, String domain) { discardCookie(name, path, domain, false); }
/** * Discard a cookie on the given path with no domain and not that's secure. * * @param name The name of the cookie to discard, must not be null * @param path The path of the cookie te discard, may be null */ public void discardCookie(String name, String path) { discardCookie(name, path, null, false); }
/** * Discard a cookie on the default path ("/") with no domain and that's not secure. * * @param name The name of the cookie to discard, must not be null */ public void discardCookie(String name) { discardCookie(name, "/", null, false); }
/** * Discard a cookie on the given path with no domain and not that's secure. * * @param name The name of the cookie to discard, must not be null * @param path The path of the cookie te discard, may be null */ public void discardCookie(String name, String path) { discardCookie(name, path, null, false); }
/** * Discard a cookie on the default path ("/") with no domain and that's not secure. * * @param name The name of the cookie to discard, must not be null */ public void discardCookie(String name) { discardCookie(name, "/", null, false); }
/** * Discard a cookie on the given path with no domain and not that's secure. * * @param name The name of the cookie to discard, must not be null * @param path The path of the cookie te discard, may be null */ public void discardCookie(String name, String path) { discardCookie(name, path, null, false); }
/** * Discard a cookie on the default path ("/") with no domain and that's not secure. * * @param name The name of the cookie to discard, must not be null */ public void discardCookie(String name) { discardCookie(name, "/", null, false); }
/** * Clear the lang for the current user. */ public void clearLang() { this.lang = null; scala.Option<String> domain = play.api.mvc.Session.domain(); response.discardCookie(Play.langCookieName(), play.api.mvc.Session.path(), domain.isDefined() ? domain.get() : null, Play.langCookieSecure()); }
/** * Discard a cookie on the given path and domain that's not secure. * * @param name The name of the cookie to discard, must not be null * @param path The path of the cookie te discard, may be null * @param domain The domain of the cookie to discard, may be null */ public void discardCookie(String name, String path, String domain) { discardCookie(name, path, domain, false); }
/** * Discard a cookie on the given path and domain that's not secure. * * @param name The name of the cookie to discard, must not be null * @param path The path of the cookie te discard, may be null * @param domain The domain of the cookie to discard, may be null */ public void discardCookie(String name, String path, String domain) { discardCookie(name, path, domain, false); }
/** * Discard a cookie on the default path ("/") with no domain and that's not secure. * * @param name The name of the cookie to discard, must not be null */ public void discardCookie(String name) { discardCookie(name, "/", null, false); }
/** * Discard a cookie on the given path with no domain and not that's secure. * * @param name The name of the cookie to discard, must not be null * @param path The path of the cookie te discard, may be null */ public void discardCookie(String name, String path) { discardCookie(name, path, null, false); }