Session concept is very useful for Web based applications to pass and share information from one Web page (request) to another Web page (request). Session support in PHP consists of a way to preserve certain data across subsequent accesses. This enables you to build more customized applications and increase the appeal of your web site. A visitor accessing your web site is assigned a unique id, the so-called session id. This is either stored in a cookie on the user side or is propagated in the URL. A PHP session solves this problem by allowing you to store user information on the server for later use (i.e. username, shopping cart items, etc). However, this session information is temporary and is usually deleted very quickly after the user has left the website that uses sessions.
FreeVersion: 1.0.0 Platform(s): linux, windows Updated: Sat Mar 1 2008
In this article, you will find out the reasons to use cookies and the reasons to use sessions. It also tells you the way hide important data from cookies.
FreeVersion: n/a Platform(s): linux, windows, freebsd, osx, sun Updated: Thu May 31 2007
This package can be used to save and restore objects in session variables.
It can register a list of one or more classes objects that are intended to be saved. The classes must implement the SessionObject interface.
The class can call all the registered classes to save and restore the state of the session objects.
FreeVersion: 0.9 Platform(s): linux, windows, freebsd, osx, sun Updated: Sun Mar 18 2007
This script can display a form or the data stored inside cookies depending on whether cookies has been set or not.
The online form is used to send data and store them inside cookies.
The script contains an online example.
FreeVersion: 1.0 Platform(s): linux, windows, freebsd, osx, sun Updated: Fri Jan 5 2007
A session is the time that a user spends at your Web site. Users may view many Web pages between the time they enter your site and leave it. Often you want information to be available for a complete session. Beginning with version 4.0, PHP provides a way to do this.
PHP allows you to set up a session and store session variables. After you create a session, the session variables are available for your use on any other Web page.
FreeVersion: n/a Platform(s): n/a Updated: Thu Nov 9 2006
PHP has a function setcookie since version 3.0, but this function is too low-level for simple usage.
Function ae_put_cookie provided, sets cookie for current domain without specifying long arguments lists. Just three arguments: 'name', 'value', session cookie flag/number of days/forever cookie flag
FreeVersion: n/a Platform(s): linux, windows, freebsd, osx, sun Updated: Mon Nov 6 2006
A collection of 19 tips on understanding and using sessions in PHP. Clear explanations and tutorial exercises are provided on starting and closing sessions, saving and retrieving values in sessions, deciding how session IDs to be transferred, deciding where to store session files, deciding when to expire session values, etc. Topics included in this collections:
What Is a Session?
How To Turn On the Session Support?
How To Save/Retrieve Values to the Current Session?
What Is a Session ID?
How To Retrieve the Session ID of the Current Session?
What Are the Options to Transfer Session IDs?
How Session IDs Are Transferred on Your Web Server?
How To Force the PHP Engine to Use Cookies to Transfer Session IDs?
Is It More Secure to Use Cookies to Transfer Session IDs?
Where Are the Session Values Stored?
What Set the Timeout Period on Session Values?
How To Remove Values Saved in the Current Session?
How To Tell If a Session Is New?
What Is session_register()?
FreeVersion: n/a Platform(s): linux, windows, freebsd, osx, sun Updated: Wed Jun 21 2006
This Article takes you step by step in creating a member system for your site. From designing mySQL tables, creating a registration script and logging them in with sessions and cookies.
FreeVersion: .10 Platform(s): linux, windows Updated: Mon May 22 2006
Learn how to use cookies to allow user downloading a file only once. Limit people from accessing things more than once. Simple comments and explanations.
FreeVersion: n/a Platform(s): n/a Updated: Sun Jun 12 2005
Cookies are pieces of text that are sent to a user's web browser. Cookies can help you create shopping carts, user communities, and personalized sites. It's not recommended that you store sensitive data in a cookie, but you can store a unique identification string that will match a user with data held securely in a database.
Version: n/a Platform(s): n/a Updated: Sun Feb 3 2008
Cookies are just a basic aspect of PHP, but can be used in so many things. From logging in and out a user on your website to keeping the name of the skin they use on your website. Below I will explain how to set (add) a cookie, delete one and then display/check one. I will first show the PHP code and then explain it.
Version: 1.0 Platform(s): linux, windows Updated: Mon Nov 5 2007
A cookie is a message given to a Web browser by a Web server. The browser stores the message in a small text file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, the cookie is sent back to the server too. The main purpose of cookies is to identify users and possibly prepare customized Web pages for them. In this tutorial you'll learn about using Cookies in PHP.
Version: n/a Platform(s): n/a Updated: Thu Dec 7 2006
A collection of 23 tips on understanding and managing cookies in PHP. Clear explanations and tutorial exercises are provided on setting and receiving cookies, creating and removing persistent cookies, specifying domain and path to restrict cookies, finding cookies in cookie files, cookie limitations:
How To Send and receive a Cookie to the Browser?
How To Set a Persistent Cookie?
How To Remove a Cookie?
How To Specify Domain and Path for a Cookie?
How Cookies Are Transported from Servers to Browsers?
How To View Cookie Header Lines?
Where Are the Persistent Cookies Stored on Your Computer?
How To View the Content of a Cookie File?
How Many Cookies Can You Set?
How Large Can a Single Cookie Be?
How Are Cookies Encoded During Transportation?
How Can Other Webmaster Steal Your Cookies?
......
Version: n/a Platform(s): linux, windows, freebsd, osx, sun Updated: Sat May 27 2006
For those new to web development and 'how things work', cookies can be a very confusing matter. In this tutorial, Timothy gives you an overview of cookies to help you understand how they work.