Как сессия и работы cookie? [дубликат]

Я серьезно сомневаюсь, что Windows 7 повредит время выполнения VB6. Должно быть огромное количество созданных небольших библиотек конечного пользователя, которые также повредятся.

у Противников компромисса, возможно, не было бы проблемы с этим, но коммерчески я думаю, что MS был бы даже после этого много лет.

8
задан random 26 October 2009 в 04:06
поделиться

3 ответа

Лучшая статья о сеансах и файлах cookie, которую я когда-либо находил, это

http://shiflett.org/articles/the- правда-о-сессиях

11
ответ дан 5 December 2019 в 10:04
поделиться

Generally, session data is stored on the server, and it uses a tracking cookie to attach a user with the data. Cookies on the other hand are set directly in the user's browser.

One key difference: Session variables generally can't be seen by the end user, but cookies can(with the right browser plugin)

Also, if you have multiple front-end web servers, cookies will be sent to all front end servers, but session data is not shared between them without extra work.

2
ответ дан 5 December 2019 в 10:04
поделиться

To sum it up a cookie is a file on the client's computer. You can store whatever in it (objects, text...). A session object can be stored in a cookie in the same way you can store some text. Keep in mind that session != cookie because sometimes you can store a session object in the database.

But still, you'll have to read up some documentation, I think.

Seen on wikipedia:

In computing, a cookie (also tracking cookie, browser cookie, and HTTP cookie) is a small piece of text stored on a user's computer by a web browser. A cookie consists of one or more name-value pairs containing bits of information such as user preferences, shopping cart contents, the identifier for a server-based session, or other data used by websites.

It is sent as an HTTP header by a web server to a web browser and then sent back unchanged by the browser each time it accesses that server. A cookie can be used for authenticating, session tracking (state maintenance), and remembering specific information about users, such as site preferences or the contents of their electronic shopping carts. The term "cookie" is derived from "magic cookie", a well-known concept in UNIX computing which inspired both the idea and the name of browser cookies. Some alternatives to cookies exist; each has its own uses, advantages, and drawbacks.

Being simple pieces of text, cookies are not executable. They are neither spyware or viruses, although cookies from certain sites are detected by many anti-spyware products because they can allow users to be tracked when they visit various sites.

Most modern browsers allow users to решить, принимать ли файлы cookie, и сроки их удержания, но отказ от файлов cookie делает некоторые веб-сайты непригодный для использования. Например, тележки для покупок или системы входа, реализованные с использованием файлы cookie не работают, если файлы cookie disabled.

4
ответ дан 5 December 2019 в 10:04
поделиться
Другие вопросы по тегам:

Похожие вопросы: