Cookie update last used

Cookie now updates to the date that the app is last used (expires after 24 hours from that timestamp).