---
title: "How can we destroy the session, how can we unset the variable of a session?"  
description: "How can we destroy the session, how can we unset the variable of a session?"  
author: "Anonymous User"  
published: 2011-06-13  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/1052/how-can-we-destroy-the-session-how-can-we-unset-the-variable-of-a-session  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# How can we destroy the session, how can we unset the variable of a session?

**session_unregister() -** Unregister a global variable from the current session\
**session_unset() -** Free all session variables

## Answers

### Answer by Anonymous User

**session_unregister() -** Unregister a global variable from the current session\
**session_unset() -** Free all session variables


---

Original Source: https://www.mindstick.com/interview/1052/how-can-we-destroy-the-session-how-can-we-unset-the-variable-of-a-session

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
