Find 3 errors in this small programm.
I have uploadet a programm flowchart!
Idea of the programm:
A customer pay and the program set a cookie (one year valid). As long as the cookie is valid, the customer can visit the paid member area. After 1 year the cookie expired. The customer must pay again, and the cookie (his membership) is valid for another year.
I found two errors in the programm, when I checked the programm this way:
1. I went to n_browsercheck.php. This worked fine and took me to n_validation.
2. This took me to [url removed, login to view], n_payment_page, [url removed, login to view] and [url removed, login to view] (Buy a cookie and become a member).
Everything worked very well!
But then I advanced the clock of my Computer (1 year), so that my membership (cookie) is not valid.
3. I go to n_browsercheck.php. This should take me to [url removed, login to view], but it leads me to n_browerproblem.php. But there is no "browserproblem", my cookies are enabled in my browser. This ist the first problem.
4. So I skip [url removed, login to view] and go to [url removed, login to view] and (should make the cookie valid for another year). But this take me to [url removed, login to view] and from there automaticly to n_buycookie.html. It looks like, the programm ([url removed, login to view]) can't make the cookie valid for another (new) year. This is the second Problem.
5. If I advance the computer clock (1 Month) and click refresh,
the programm says: Cookie expire in 364 days. But it should
say: Cookie expire in 334 days (364-30=334). This is the third Problem.