CANBeWell / web

0 stars 1 forks source link

Add cookie deadline time to source code for not showing Terms of use twice for users #37

Closed mraahemi closed 5 years ago

0Calories commented 6 years ago

Terms and conditions acceptance must be saved as a cookie, as well as profile data.

mraahemi commented 5 years ago

For any entrance, get cookies if they exist and set value and skip accept if they all exist. Otherwise, show accept. if patient: yes / provider: no for gender: Male/ Female / Both for age: A number between 18 to 149 for allAges: a boolean For accept: a boolean Next time the user comes to the web application if there was a cookie without value there should be a new cookie set otherwise the values should be called from previous cookies.