Skip to content
Snippets Groups Projects
Commit a348db81 authored by Ari-Pekka Kauppinen's avatar Ari-Pekka Kauppinen
Browse files

Cookie expires in the year 2070

parent f46014d9
No related branches found
No related tags found
1 merge request!4Merge develop to master
......@@ -19,8 +19,10 @@ class Start extends Component {
//TODO: check if fields are correctly filled + city verification
e.preventDefault();
const cookies = new Cookies();
//cookie expires in the year 2050
const date = new Date(2070, 1, 1);
//Set cookie
cookies.set('firstPage', 'true', { path: '/' });
cookies.set('firstPage', 'true', { path: '/', expires: date });
console.log(cookies.get('firstPage'))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment