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 call back method?
What do you use c# for?
Can we inherit singleton class in c#?
Why do we need indexer in c#?
Which is the base class in c#?
Is c# slower than java?
What is typeof c#?
Can a abstract class have a constructor?
Explain how can you clean up objects holding resources from within the code?
What is console readkey ()?
What is double c#?
What is parameters in c#?
What is difference between array and collection?
What is cts, clr?
What is the difference between int and int in c#?