como destruir uma variavel de sessão
// criando sessões de login
session_start();
$email = $_SESSION['email'];
$senha = $_SESSION['senha'];
// criando sessões do jogo
$senha = $_SESSION['palavra'];
$senha = $_SESSION['letra'];
// removendo todas as sessões
session_start();
session_destroy();
unset( $_SESSION );
// removendo sessões do jogo
// opção 1)
unset( $_SESSION['palavra'] );
unset( $_SESSION['senha'] );
// opção 2)
$_SESSION['palavra'] = null;
$_SESSION['senha'] = null;
Also in PHP:
- check a string contains a ltter in php
- $date php
- code php ajout heure
- clear route cache laravel 5.1
- catch all exceptions php
- data() php
- display_errors in php
- $dbh = new PDO("mysql:host
- date_format timeformat php
- array sort array reverse php
- date - Manual - PHPwww.php.net › manual › function.date.phpdate ( string $form
- delete cache in laravel command
- array unique values
- create table modal and seeder at once in laravel
- array key exstis php
- centos excecutable php
- file directory array
- current date time php
- error_reporting(0) php 7
- database seeder in laravel
- doubles tennis random function php
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:
- Allowed memory size of 536870912 bytes exhausted (tried to allocate 264245248 bytes) http://localhost:8000/createProduct
- detect keyword of php string