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
How do you escape in c#?
How do I do implement a assert?
What is c# and why it is used for?
Explain About .Net remoting
What is difference between a type and class?
Is arraylist thread safe?
if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?
What is xml comments in c#?
What is generic types in c#?
How do you name a variable in c#?
What is a nested type. Give an example?
What is the use of jit ? Jit (just - in - time) is a compiler which converts msil code to
what are the different ways a method can be overloaded?
Explain About ADO and its objects
What is icomparer in c#?