---
title: "What is a session?"  
description: "What is a session?"  
author: "Simond Gear"  
published: 2016-09-26  
updated: 2020-09-20  
canonical: https://www.mindstick.com/interview/23068/what-is-a-session  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# What is a session?

A session is used to store information in variables. These PHP variable are used to store user information to be used across multiple pages. Unlike a cookie information is not stored in the user computer. PHP session is started by using session_start() function.

## Answers

### Answer by Simond Gear

A session is used to store information in variables. These PHP variable are used to store user information to be used across multiple pages. Unlike a cookie information is not stored in the user computer. PHP session is started by using session_start() function.


---

Original Source: https://www.mindstick.com/interview/23068/what-is-a-session

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
