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
Helo , Help Me , Help Me About : C# Windows Application - Network How To Manage IP Client's Accessiblity To The Internet Share concise Substitute , Minor ISA Server
What are types of constructor?
What are generations and how are they used by the garbage collector?
Why do we need constructor?
What are generics in c#.net?
How long has c# been around?
How to update the gui from another thread in c#?
What Happens In Memory When You Box And Unbox A Value-type?
What is AutoMapper in C#?
How do you specify a custom attribute for the entire assembly (rather than for a class)?
Why to use lock statement in c#?
What is datatable in c#?
Can abstract class be sealed in c#?
What is escape sequence in c#?
Are there functions in c#?