note 114676 added to intro.session

From: Date: Fri, 21 Mar 2014 08:10:12 +0000
Subject: note 114676 added to intro.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-198994@lists.php.net to get a copy of this message
PHP Session Variables When you are working with an application, you open it, do some changes and then you close it. This is much like a Session. The computer knows who you are. It knows when you start the application and when you end. But on the internet there is one problem: the web server does not know who you are and what you do because the HTTP address doesn't maintain state. A PHP session solves this problem by allowing you to store user information on the server for later use (i.e. username, shopping items, etc). However, session information is temporary and will be deleted after the user has left the website. If you need a permanent storage you may want to store the data in a database. Sessions work by creating a unique id (UID) for each visitor and store variables based on this UID. The UID is either stored in a cookie or is propagated in the URL. ---- Server IP: 72.52.91.14 Probable Submitter: 117.196.197.192 ---- Manual Page -- http://php.net/manual/en/intro.session.php Edit -- https://master.php.net/note/edit/114676 Del: integrated -- https://master.php.net/note/delete/114676/integrated Del: useless -- https://master.php.net/note/delete/114676/useless Del: bad code -- https://master.php.net/note/delete/114676/bad+code Del: spam -- https://master.php.net/note/delete/114676/spam Del: non-english -- https://master.php.net/note/delete/114676/non-english Del: in docs -- https://master.php.net/note/delete/114676/in+docs Del: other reasons-- https://master.php.net/note/delete/114676 Reject -- https://master.php.net/note/reject/114676 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#198994) next »