Cookie Versus Session Demo

Non-session: 1
Session: 1
Cookie:

What happens if you refresh the browser? How does the session variable compare to the non-session variable? How does it compare to the cookie variable?

What happens if you close the browser and start again? How does the session variable compare to the cookie variable under those circumstances?

What happens if you open a differnt browser? What happens if you clear the browser's history?

http://www.w3schools.com/php/php_sessions.asp

http://www.w3schools.com/php/php_cookies.asp