<< < 53 54 55 56 57 58 59 60 61 62 > >>   Sort: Rank

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, 1379🔥, 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, 1890🔥, 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, 1890🔥, 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, 1580🔥, 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, 1545🔥, 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, 1471🔥, 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, 2554🔥, 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, 1664🔥, 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, 1535🔥, 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, 1477🔥, 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, 1412🔥, 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, 2172🔥, 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, 1929🔥, 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, 1819🔥, 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, 1603🔥, 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, 1470🔥, 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, 1896🔥, 0💬

Cookies Encoded during Transportation in PHP
How Are Cookies Encoded During Transportation in PHP? When cookies are transported from servers to browsers and from browsers back to servers, Cookies values are always encoded using the URL encoding standard to ensure that they are transported accurately. But you don't need to worry about the encod...
2016-10-29, 1853🔥, 0💬

Understanding and Using Sessions in PHP
Where to find tutorials on how to use Sessions in PHP? A collection of tutorials to answer many frequently asked questions on how to use Sessions in PHP. Clear explanations and tutorial exercises are provided on starting and closing sessions, saving and retrieving values in sessions, deciding how se...
2016-10-29, 1602🔥, 0💬

Turning on the Session Support in PHP
How To Turn on the Session Support in PHP? The session support can be turned on automatically at the site level, or manually in each PHP page script: Turning on session support automatically at the site level: Set session.auto_start = 1 in php.ini. Turning on session support manually in each page sc...
2016-10-29, 1566🔥, 0💬

What Is a Session in PHP
What Is a Session in PHP? A session is a logical object created by the PHP engine to allow you to preserve data across subsequent HTTP requests. There is only one session object available to your PHP scripts at any time. Data saved to the session by a script can be retrieved by the same script or an...
2016-10-29, 1526🔥, 0💬

What Is a Session ID in PHP
What Is a Session ID in PHP? A session ID is an identification string of a session. Since there might be multiple visitors coming to your Web site at the same time, the PHP engine needs to maintain multiple sessions concurrently. Session IDs are created and maintained by the PHP engine to identify s...
2016-10-26, 1688🔥, 0💬

Options to Transfer Session IDs in PHP
What Are Options to Transfer Session IDs in PHP? Once a new session is created, its session ID must be transferred to the client browser and included in the next client request, so that the PHP engine can find the same session created by the same visitor. The PHP engine has two options to transfer t...
2016-10-26, 1569🔥, 0💬

Retrieving Session ID from the Current Session in PHP
How To Retrieve the Session ID of the Current Session in PHP? Normally, you don't need to know the session ID of the current session. But if you are interested to know the session ID created by the PHP engine, there are two ways to get it: Calling session() function. It will return the session ID va...
2016-10-26, 1507🔥, 0💬

<< < 53 54 55 56 57 58 59 60 61 62 > >>   Sort: Rank