Skip to content

Commit

Permalink
Add path to example
Browse files Browse the repository at this point in the history
  • Loading branch information
eXon committed Feb 16, 2016
1 parent f7b9853 commit fb2f2a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ export default class MyApp extends Component {

onLogin(userId) {
this.setState({ userId });
cookie.save('userId', userId);
cookie.save('userId', userId, { path: '/' });
}

onLogout() {
cookie.remove('userId');
cookie.remove('userId', { path: '/' });
}

render() {
Expand Down

0 comments on commit fb2f2a8

Please sign in to comment.