Build Your Own DatabaseDriven Website Using PHP amp;amp; MySQL [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Build Your Own DatabaseDriven Website Using PHP amp;amp; MySQL [Electronic resources] - نسخه متنی

Kevin Yank

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید








Summary

In this chapter, you learned about the two main methods of creating
persistent variables—those variables that continue to exist from page
to page in PHP. The first stores the variable in the visitor’s browser
in the form of a cookie. By default, cookies terminate
at the end of the browser session, but by specifying an expiry time, they
can be preserved indefinitely. Unfortunately, cookies are fairly unreliable
because you have no way of knowing when the browser might delete your cookies,
and because some users configure their browsers to disable cookies. Obviously,
cookies are not something that should be relied upon.

Sessions, on the other hand, free you from all
the limitations of cookies. They don’t rely on cookies to work, and
they let you store an unlimited number of potentially large variables. Sessions
are an essential building block in modern ecommerce applications, as we demonstrated
in our simple shopping cart example.

/ 190