What is the difference between cookies and session?
Answer Posted / kayal
The main difference between cookies and sessions is that cookies are stored in the user's browser, and sessions are not. A cookie can keep information in the user's browser until deleted. Sessions work instead like a token allowing access and passing information while the user has their browser open. The problem with sessions is that when you close your browser you also lose the session. I have read the very good post on cookies and sessions with suitable php code.You can see that on
http://cs-pages.blogspot.com/2011/05/difference-between-cookies-and-sessions.html
| Is This Answer Correct ? | 12 Yes | 7 No |
Post New Answer View All Answers
What is a static class in c#?
Why is main static in c#?
What are functions in c#?
In c#, what will happen if you do not explicitly provide a constructor for a class?
What is the difference between array and list in c#?
What are the different types of delegation?
How to move to a state-related codebase?
Name the control which cannot be placed in mdi?
What does static mean in c sharp?
What is Implementation inheritance
What is ioc containers c#?
What does convert toint32 mean?
Why reflection is used in c#?
Illustrate serialization?
What's the difference between a method and a procedure?