Answers for "How would you start a session? * 2 points session(start); session(); session_start(); start_session();"

PHP
1

php session destroy

<?php
// Destroy the currently active session.
session_destroy();
?>
Posted by: Guest on April-14-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 "How would you start a session? * 2 points session(start); session(); session_start(); start_session();"

Browse Popular Code Answers by Language