I need 3 html-pages for a cookie based member area.
If someone go one this site, the page set a cookie that expire in about 1 year (if it is easier to code, it can be a month more, or 400 days).
Page 2 (login page):
If someone go one this site, the page check if the user have a valid cookie on his computer. If not, the page redirect him to another site, where he get told, that he have to buy a membership. If the user have a valid cookie, the page redirect him to the member area (this means to a normal website).
Page 3 (Check Cookie handling)
This page check, if the browser accept cookies. If the browser accept cookie, redirect to a html-page. If not, redirect to another html-page.
I use [url removed, login to view] for the membership area, but this is not importent, because you don't have to programm this.