<< < 7 8 9 10 11 12 13 14 15 16 > >>   Sort: Rank

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, 254👍, 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: &l...
2016-10-30, 263👍, 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 Explorere (IE): about 3904 bytes Mozilla Firefox: about 3136 bytess If you want to test this limit, copy this sam...
2016-10-30, 262👍, 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, 257👍, 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, 255👍, 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 Explorere (IE): 20 Mozilla Firefox: 50 If you want to test this limit, copy this sample script, how_many...
2016-10-30, 252👍, 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, 289👍, 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, 275👍, 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, 273👍, 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, 268👍, 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, 250👍, 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, 347👍, 0💬

Saving Values in the Session in PHP
How To Save Values to the Current Session in PHP? When session is turned on, a session will be automatically created for you by the PHP engine. If you want to save any values to the session, you can use the pre-defined associative array called $_SESSION. The following PHP script shows you how to sav...
2016-10-26, 291👍, 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, 280👍, 0💬

Optoins 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, 274👍, 0💬

Retrieving Values Stored in Session in PHP
How To Retrieve Values from the Current Session in PHP? If you know some values have been saved in the session by another script requested by the same visitor, you can retrieve those values back by using the pre-defined associative array called $_SESSION. The following PHP script shows you how to re...
2016-10-26, 266👍, 0💬

Where Are Session Values Stored in PHP
Where Are Session Values Stored in PHP? When a value is saved into the current session by one PHP page, the PHP engine must store this value somewhere on Web server, so that the PHP engine can retrieve it back when same visitor comes back to request another PHP page. Where are the session values sto...
2016-10-25, 265👍, 0💬

Timeout Period on Session Values in PHP
What Is the Timeout Period on Session Values in PHP? The PHP engine has no direct settings on session timeout period. But it has a session garbage collection mechanism that you can set to remove those special files containing session values. There are 3 settings you can use to define the session gar...
2016-10-25, 264👍, 0💬

Security of Storing Session ID as a Cookie in PHP
Is It More Secure to Use Cookies to Transfer Session IDs in PHP? Is it more secure to use cookies to transfer session IDs? The answer is yes, because attacking your Web site using URL parameters is much easier than using cookies. So if you are the system administrator of your Web server, you should ...
2016-10-25, 262👍, 0💬

How Sessoion IDs Are Transferred in PHP
How Session IDs Are Transferred on Your Web Server in PHP? As you know there are two options the PHP engine can use to transfer session IDs to the client browsers. But how to do know which option is your PHP engine is using? The PHP sample script will help you to find out: <?php session_start(); ...
2016-10-25, 257👍, 0💬

Using Cookies to Transfer Session IDs in PHP
How To Force the PHP Engine to Use Cookies to Transfer Session IDs in PHP? If you want to force your PHP engine to use cookies to transfer session IDs instead of URL parameters, you can open the PHP configuration file, php.ini, and make the following changes: session.use_cookies = 1 session.use_only...
2016-10-25, 255👍, 0💬

Setting session.gc_maxlifetime Properly in PHP
How To Set session.gc_maxlifetime Properly in PHP? As you know that session.gc_maxlifetime is the session value timeout period. You should set this value based on the usage pattern of your visitors. Here are some suggestions: # Set it to 20 minutes for a normal Web site: session.gc_maxlifetime = 120...
2016-10-24, 292👍, 0💬

Setting session.gc_divisor Properly in PHP
How To Set session.gc_divisor Properly in PHP? As you know that session.gc_divisor is the frequency of when the session garbage collection process will be executed. You should set this value based on the income request traffic. Here are some suggestions: # Set it to 10, if traffic is less than 10,00...
2016-10-24, 284👍, 0💬

Testing the Session Garbage Collection Process in PHP
How To Test the Session Garbage Collection Process in PHP? In order to test the session garbage collection process, you need to change the settings to expire session variables in 10 seconds and run the process on every request: session.gc_probability = 1 session.gc_divisor = 1 session.gc_maxlifetime...
2016-10-24, 278👍, 0💬

<< < 7 8 9 10 11 12 13 14 15 16 > >>   Sort: Rank