![]() |
A session in PHP is a way to preserve data across subsequent HTTP requests. It allows information like user authentication status or user preferences to be stored and accessed throughout a user’s interaction with a website. Starting a Session:To start a session in PHP, use the <?php
session_start();
// Session started
?>
Destroying Complete SessionThe session_destroy() function is used to destroy a session. The session_destroy() function does not require any argument. <?php // session started session_start( ); Important Points:
|
Reffered: https://www.geeksforgeeks.org
PHP |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 11 |