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 the difference between Singleton design pattern and Factory design pattern?
What are access modifiers used for?
Write a program in C# for checking a given number is PRIME or not.
What is CASPOL?
What is the C# syntax to catch any possible exception?
Is null empty or whitespace c#?
What is a Managed Code??
What are the advantages of using partial classes?
Is php better than c#?
How is the syntax written to inherit from a class in C#?Give an example ?
What is delimiter in c#?
What is the difference between double and decimal in c#?
What do you mean by “finalize” and “finally” methods in c#?
Is there an equivalent of exit() for quitting a c# .net application?
Is predicate a functional interface?