Answers for "Write a program to create a session to set a value in session and to remove data from a session"

PHP
4

php session variables

<?php
   session_start();
   $_SESSION['var'];
?>
Posted by: Guest on March-18-2020
-1

session start php

<?php
// This sends a persistent cookie that lasts a day.
session_start([
    'cookie_lifetime' => 86400,
]);
?>
Posted by: Guest on April-17-2020

Code answers related to "Write a program to create a session to set a value in session and to remove data from a session"

Browse Popular Code Answers by Language