<< < 1 2 3 4 5 6 7 8 9 10 > >>   Sort: Rank

Understanding and Managing Cookies in PHP
Where to find tutorials on how to manage Cookies in PHP? A collection of tutorials to answer many frequently asked questions how to manage Cookies in PHP. Clear explanations and tutorial exercises are provided on setting and receiving cookies, creating and removing persistent cookies, specifying dom...
2016-11-05, 1728🔥, 0💬

Retrieving the Original Query String in PHP
How To Retrieve the Original Query String in PHP? If you have coded some values in the URL without using the standard form GET format, you need to retrieve those values in the original query string in $_SERVER['QUERY_STRING']. The script below is an enhanced version of processing_forms.php which pri...
2016-11-05, 1493🔥, 0💬

What Is a Cookie in PHP
What Is a Cookie in PHP? A cookie is a small amount of information sent by a Web server to a web browser and then sent back unchanged by the browser each time it accesses that server. HTTP cookies are used for authenticating, tracking, and maintaining specific information about users, such as site p...
2016-11-05, 1450🔥, 0💬

What Is a Persistent Cookie in PHP
What Is a Persistent Cookie in PHP? A persistent cookie is a cookie which is stored in a cookie file permanently on the browser's computer. By default, cookies are created as temporary cookies which stored only in the browser's memory. When the browser is closed, temporary cookies will be erased. Yo...
2016-11-04, 2402🔥, 0💬

Setting a Persistent Cookie in PHP
How To Set a Persistent Cookie in PHP? If you want to set a persistent cookie, you can use the setcookie() function with an extra parameter to specify its expiration time. To follow sample script sets 2 persistent cookies to be expired within 7 days: setcookie("LoginName","FYICent er");setcookie("Pr...
2016-11-04, 2157🔥, 0💬

Testing Cookies on a Web Server in PHP
How To Test Cookies on a Web Server in PHP? If you want to test cookies with a browser, you need to run a Web server locally, or have access to a Web server remotely. Then you can copy the following PHP cookie test page, setting_receiving_cookies.php, to the Web server: &lt;?php setcookie("Login...
2016-11-04, 1592🔥, 0💬

Sending a Cookie to the Browser in PHP
How To Send a Cookie to the Browser in PHP? If you want to sent a cookie to the browser when it comes to request your PHP page, you can use the setcookie( ) function. Note that you should call setcookie() function before any output statements. The following script shows you how to set cookies: &...
2016-11-04, 1431🔥, 0💬

Receiving a Cookie from the Browser in PHP
How To Receive a Cookie from the Browser in PHP? If you know that a cookie has been sent to the browser when it was visiting the server previously, you can check the built-in $_COOKIE array, which contains all cookies that were sent by the server previously. The script below shows you how to pickup ...
2016-11-04, 1374🔥, 0💬

Specifying Domain and Path for a Cookie in PHP
How To Specify Domain and Path for a Cookie in PHP? If you want to specify domain and path for cookie, you can use the setcookie() function with two extra parameters. The sample PHP script below shows you how to set the domain and path attributes for temporary and persistent cookies: &lt;?php se...
2016-11-03, 1888🔥, 0💬

Domain and Path Attributes for Cookies in PHP
What Are Domain and Path Attributes for Cookies in PHP? Cookies can also be defined with two other attributes: Domain - A cookie attribute that defines the domain name of Web servers where this cookie is valid. Web browsers holding this cookie should not sent it back to any Web server outside the sp...
2016-11-03, 1884🔥, 0💬

Mistake on Setting Cookie Path and Domain in PHP
What Is the Common Mistake When Setting Path and Domain on Temporary Cookies in PHP? A common mistake made by many PHP developers is using an empty string for the expiration time parameter when setting path and domain for temporary cookies. The PHP script below shows an example of this mistake: &...
2016-11-03, 1568🔥, 0💬

Removing a Cookie in PHP
How To Remove a Cookie in PHP? Once a cookie is sent from the server to the browser, there is no direct way for the server to ask the browser to remove the cookie. But you can use the setcookie() function to send the same cookie to browser with a negative expiration time, which will cause the browse...
2016-11-03, 1539🔥, 0💬

Testing Persistent Cookies in PHP
How To Test Persistent Cookies in PHP? If you want to test persistent cookies, you can copy the following PHP script, setting_persistent_cookies.php ,to your Web server: &lt;?php setcookie("LoginName","FYICent er");setcookie("PreferredColor","Bl ue");setcookie("CouponNumber","0747 0433",time()+60...
2016-11-03, 1464🔥, 0💬

Cookie Files Stored on Your Computer in PHP
Where Are the Persistent Cookies Stored on Your Computer in PHP? The location and file names where persistent cookies are stored on your computer depend on which browser you are using. If you using Microsoft Internet Explorer, persistent cookies are stored in the \Documents and Settings\$user\Cookie...
2016-11-02, 2550🔥, 0💬

Viewing Cookie Header Lines in PHP
How To View Cookie Header Lines in PHP? If you are interested to see the cookie header lines, or you are having trouble with your cookies and need to see the cookies to help debugging, you can run your script with PHP CGI interface in a command line window. The following tutorial exercise shows you ...
2016-11-02, 1660🔥, 0💬

Cookies Transported from Browsers to Servers in PHP
How Cookies Are Transported from Browsers to Servers in PHP? Cookies are transported from a Web browser to a Web server in the header area of the HTTP request message. Each cookie will be included in a separate "Cookie:" header line in the following format: GET / HTTP/1.1 Cookie: name1=value1 Cookie...
2016-11-02, 1531🔥, 0💬

Cookies Transported from Servers to Browsers in PHP
How Cookies Are Transported from Servers to Browsers in PHP? Cookies are transported from a Web server to a Web browser in the header area of the HTTP response message. Each cookie will be included in a separate "Set-Cookie:" header line in the following format: Set-Cookie: name=value; expires=time;...
2016-11-02, 1473🔥, 0💬

Deleting Cookie Files in PHP
How To Delete Cookie Files on Your Computer in PHP? A simple way to delete cookie files on your computer is to use the function offered by the IE browser. The following tutorial exercise shows you how to delete cookie files created by IE: Open IE (Internet Explorer) Go to Options/Internet Options Cl...
2016-11-02, 1409🔥, 0💬

Viewing the Content of a Cookie File in PHP
How to View the Content of a Cookie File in PHP? Cookie files are normal text files. You can view them with any text editor. Follow the steps below to see what is in a cookie file created by your own PHP script. Copy the following sample script, setting_persistent_cookies.php ,to your Web server: &a...
2016-10-30, 2170🔥, 0💬

Single Cookie Size Limit in PHP
How Large Can a Single Cookie Be in PHP? How large can a single cookie be? The answer is depending what is the Web browser your visitor is using. Each browser has its own limit: Internet Explorer (IE): about 3904 bytes Mozilla Firefox: about 3136 bytes If you want to test this limit, copy this sampl...
2016-10-30, 1923🔥, 0💬

Cookie Management on Firefox in PHP
How Does Firefox Manage Cookies in PHP? Firefox browser allows you to delete old cookies, and gives you options to keep persistent cookies in cookie files until they reach their expiration time. The following tutorial shows you how to manage cookies in Firefox: Run Firefox Go to Tools/Options Click ...
2016-10-30, 1815🔥, 0💬

Number of Cookies Supported in PHP
How Many Cookies Can You Set in PHP? How many cookies can you set in your PHP page? The answer is depending what is the Web browser your visitor is using. Each browser has its own limit: Internet Explorer (IE): 20 Mozilla Firefox: 50 If you want to test this limit, copy this sample script, how_many_...
2016-10-30, 1593🔥, 0💬

Firefox Storing Persistent Cookies in PHP
Where Does File Firefox Store Persistent Cookies in PHP? If you change Firefox to keep cookies "until they expire", Firefox will store persistent cookies from all Web servers in a single file at: \Documents and Settings\$user\Application Data\Mozilla \Firefox\Profiles\xby7vgys.def ault\cookie.txt.Op...
2016-10-30, 1466🔥, 0💬

Malicious Website Stealing Cookies in PHP
How Can Other Webmaster Steal Your Cookies in PHP? All browsers are following the security rule that your cookies are sent back only to your Web servers. They will not be sent to other Webmaster's Web server directly. However, other Webmaster may design some malicious JavaScript codes to steal cooki...
2016-10-29, 1894🔥, 0💬

<< < 1 2 3 4 5 6 7 8 9 10 > >>   Sort: Rank