PHP 8 Basics by Gunnard Engebreth & Satej Kumar Sahu
Author:Gunnard Engebreth & Satej Kumar Sahu
Language: eng
Format: epub
ISBN: 9781484280829
Publisher: Apress
7. Sessions and Cookies
Gunnard Engebreth1 and Satej Kumar Sahu2
(1)Madison, WI, USA
(2)Bangalore, India
In the previous chapters, you learned how to use arrays, one of the most versatile and useful elements in PHP, to store multiple values within a single variable. Letâs now imagine you need to store some information to be used across multiple web pages. You need to store some information on a local computer (client side) or store some information on a server (server side) for just a certain time using the web page. How would you do this? By using sessions and cookies.
The main difference between sessions and cookies is that cookies, as previously said, are used to store some user information on a local computer as client-side files while sessions are server-side files that store user information on a web server.
While cookies expire right after the specified lifetime you define, sessions end when you close the web browser or when you log out of the web page or program.
This chapter consists of the following sections:PHP Sessions
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Access | Data Mining |
Data Modeling & Design | Data Processing |
Data Warehousing | MySQL |
Oracle | Other Databases |
Relational Databases | SQL |
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(7894)
Learning SQL by Alan Beaulieu(5464)
Weapons of Math Destruction by Cathy O'Neil(5094)
Big Data Analysis with Python by Ivan Marin(3264)
Building Statistical Models in Python by Huy Hoang Nguyen & Paul N Adams & Stuart J Miller(2962)
Azure Data and AI Architect Handbook by Olivier Mertens & Breght Van Baelen(2944)
Blockchain Basics by Daniel Drescher(2927)
Serverless Machine Learning with Amazon Redshift ML by Debu Panda & Phil Bates & Bhanu Pittampally & Sumeet Joshi(2853)
Data Wrangling on AWS by Navnit Shukla | Sankar M | Sam Palani(2641)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2600)
Pandas Cookbook by Theodore Petrou(2526)
Mastering Python for Finance by Unknown(2523)
Driving Data Quality with Data Contracts by Andrew Jones(2518)
Data Engineering with dbt by Roberto Zagni(2341)
Machine Learning Model Serving Patterns and Best Practices by Md Johirul Islam(2308)
How The Mind Works by Steven Pinker(2252)
Network Science with Python and NetworkX Quick Start Guide by Edward L. Platt(2081)
Building Machine Learning Systems with Python by Richert Willi Coelho Luis Pedro(2072)
Learn T-SQL Querying by Pam Lahoud & Pedro Lopes(2051)