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 does protected internal access modifier mean?
What is the benefit of interface in c#?
What are tuples c#?
How is lazy loading achieved?
Explain the concepts of cts and cls(common language specification).
Is it possible to nest cfml conditional tags?
What are most desktop applications written in?
What are All kind of access specifiers for a class and for methods
Is it possible to inline assembly or il in c# code?
What is difference between encapsulation and abstraction in c#?
What is iqueryable and ienumerable in c#?
What is null propagation c#?
Explain About multi level and multiple inheritance how to achieve in .net
Which one is trusted and which one is untrusted?
Is c# different than c++?