Skip to content

Commit

Permalink
add clear function for SharedObject
Browse files Browse the repository at this point in the history
  • Loading branch information
hoothin committed Apr 13, 2015
1 parent 2c94449 commit 1439f85
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tinyaxe/utility/OpenflCookie.hx
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@ class OpenflCookie {
Reflect.setProperty(_cookie.data, cookieKey, cookieValue);
_cookie.flush();
}

public static function clear(?_cookieName:String):Void {
if (_cookieName != null) cookieName = _cookieName;
var _cookie = SharedObject.getLocal(cookieName);
_cookie.clear();
}

}

0 comments on commit 1439f85

Please sign in to comment.