Create simple cookie


I’m looking for a simple way to create a cookie.

When a visitor visits the website he needs to make a choice on the index page between “SITE A” & “SITE B”.

When he clicks on “SITE A” he needs to go auto to and for B the same case.

When the visitor returns after a week he need’s to go automatically to

Any easy way to implement?