Meaning of cookie in browser -


I've found that the cookie is a random string in the browser that sends the web server to remember the information purpose of users but I do not understand in the programmer's perspective, how does it use cookies? For example, I have used the EditThis cookie extension in the Chrome browser to read the wikipedia.org site's cookies in the following browsers, here also here. The value of this cookie (session id) is useless for the programmer (Edit: I mean that I do not remove any information from this cookie, I know that cookie is very important for developers, so sorry for my poor expression is). If I get this cookie, what kind of information can I understand about users? Looking for some help! Thanks a lot!

Example of cookie

EDIT: Sorry, I have expressed my problem wrongly. Actually, I'm going to write an extension to collect users' preferences through a user's cookie, but I can not find what information can be removed from the cookie. I've read many documents about cookies, such as Wikipedia, and all this is to show just how to get cookies, definition of cookies, classified ... and nothing that we can get from cookies. Thanks a lot!

Why do you say session IDs are useless to programmers? It can really be very useful somewhere on Wikipedia's servers, they are probably gathering a lot of information about your session. This may include things like you've already hidden one of your fundraising banners (so that it does not show up repeatedly), which are essential things for basic functionality, as if you are currently As with which user are logged in

However, Wikipedia is collecting this information for millions of sessions, the information needs to be returned to each individual browser, the session ID is how this happens when you first got access to the page. It sets the session ID in a cookie, and that cookie is sent back to the server with every request you requested. After that there is a code at the back of the code that reads the session session from the cookie and uses it to see all the specific information for its session, and nothing needs to be done with it.

You store session information yourself in the course cookies, but there are some problems with that First of all, there are limitations on the size of each cookie, and on the overall size of all the cookies for a domain. The data you want to store can not fit anything but the big problem is that the end user can manipulate cookies if you have entered the user's information as a cookie, It can only be changed, and suddenly log in as someone else! Of course, it is also possible that users can convert their session ID into another user's session and suddenly they can be logged in their form. This is the reason that the session ID should be as random as possible, and it should be quite long that estimating someone else is basically impossible.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -