`$cookieStore` removes cookie from browser, I tried.
But

~~~
$cookie['userid'] = null
~~~

will not remove the cookie, just set it to empty, it can work for logout, I just think it is not good way, so I use `$cookieStore`