Session VS Cookies
Posted: Mon Oct 09, 2006 2:47 am
When it comes login authentification, we have several shoice to store the authentification data.
Some of them are, cookies and session.
They will freeze the variables, so when you switch or change page (in a website of course) the variable won't be reset.
But they have a slight difference, cookies will save the variables in client computer and repeately sent to server as new request send. In other hand, Session will keep the variables in server computer and assign each client with session_id so the variables won't exchanged with the other clients' vars.
Some of them are, cookies and session.
They will freeze the variables, so when you switch or change page (in a website of course) the variable won't be reset.
But they have a slight difference, cookies will save the variables in client computer and repeately sent to server as new request send. In other hand, Session will keep the variables in server computer and assign each client with session_id so the variables won't exchanged with the other clients' vars.