..Session and Cookie..
Assalamualaikum..
Hi everyone, I’m back with new Entry.. ..I want to share about what is differences between session and cookie..
Cookie
|
Session
|
- A cookie can keep information in the user's browser until the
user deleted.
- If a person has a
login and password, this can be set as a cookie in their browser so they do
not have to re-login to your website every time they visit.
|
- Sessions are not same with a cookie.
- They 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.
- So, if you had a site requiring a login, this
could not be saved as a cookie, and the user would be forced to re-login
every time they visit.
|
This is example of cookie and session
|
.. Cookie .. |
|
.. Session ..
|
This is illustration how the cookie and session works..
0 comments:
Post a Comment