Answers for "can we give a name to session in php"

PHP
3

create session in php

<?php 
  // Start the session
  session_start();

  // Set session variables
  $_SESSION["color"]= "blue";
  $_SESSION["animal"]= "dog";
  echo "The session variable are set up.";
?>
Posted by: Guest on June-16-2020
0

php session name

<?php
  session_name( 'fObj' );
  session_start();

  print_r($_SESSION);
Posted by: Guest on July-15-2021

Code answers related to "can we give a name to session in php"

Browse Popular Code Answers by Language