Topic: Terms accept in cookies

I hope, I good introduce My problem.
Well, I want that the person who comes for the first time on the site (http://localhost:3000) has been redirect to the terms & rules(http://localhost:3000/terms), when Hi accept the terms Hi will be redirected to the main page (http://localhost:3000). I want that information to stored in the browser's memory, so that the person entering the next time from the same browser and the same page Hi no longer have to accept the rules, until Hi delete the cookies.