Session VS Cookies

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply

Which one do you prefer to choose

Session
5
100%
Cookies
0
No votes
 
Total votes: 5

chakhar86
Forum Commoner
Posts: 45
Joined: Mon Jun 05, 2006 1:36 am
Contact:

Session VS Cookies

Post by chakhar86 »

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.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

chakhar86
Forum Commoner
Posts: 45
Joined: Mon Jun 05, 2006 1:36 am
Contact:

Post by chakhar86 »

I just wanna poll out from you guys...
Post Reply