Answers for "use session_start(); in functions.php wordpress"

PHP
5

create session in wordpress

/* create session in wordpress and php by [email protected] */
if (!session_id()) {
    session_start();
}

  if ( isset( $_POST['wp-submit'] ) ){

    $_SESSION['username']=$_POST['log'];

  }
Posted by: Guest on January-27-2021
5

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 "use session_start(); in functions.php wordpress"

Browse Popular Code Answers by Language