Assalamualaikum..
What is session? What is cookies? What are they used for? Let me explain.
Session
From what I understand, session is a certain period of time where users will log in and after some times or some reasons, the session will be expired and the account will automatically log off. The period between user logged in and logged out is what we called a session. The reason why users need a session is because of security matters. Without session, user's information will definitely not secure. The session will be ended if the user closes the web browser. Each and every time the users want to visit the website, they need to re-login.
Cookies
A cookie is a place where the web browser stores temporary information about the users. It can keep information in the user's browser until it is deleted. If a user has a login and password, this can be set as a cookie in their browser so they do not have to re-login to the website every time they visit.
What are they used for?
Webpages have no memories. A user going from page to page will be treated by the website as a completely new visitor. Session cookies enable the website they are visiting to keep track of their movement from page to page so they don't get asked for the same information they've already given to the site. Cookies allow them to proceed through many pages of a site quickly and easily without having to authenticate or reprocess each new area they visit.









0 comments:
Post a Comment