PHP:How to create session display and unset session in php

Loading...

( Total Share 4 )
All credits go to their respective owners.

Rating: 100% (by 4 users)
  •   Title : PHP:How to create session display and unset session in php
  •   Author : codeeko
  •   Duration : 5.57
  •   Viewer : 1.101
  •   Like : 4
  •   Dislike : 0


  •     

    Download MP3 Format :

    Download Videos Format :



  • Loading...
  •   Description :

    Hello everyone in this tutorial I will show you how
    to create session,display session, unset and destroy session

    Steps --
    1) First create a php page and start the session using the function
    session_start();

    2) Then declare and initialize session variables using the following code.
    $_SESSION['name']="Codeeko";
    $_SESSION['Age']="19";

    3) If you want to add array to a session veriable use following code

    $arr=array(1,2,3,4,5,6,7,8,9,0);
    $_SESSION['arrayData']=$arr;

    4) Now create another php page and display the session value;

    5) Now create another page and unset session that are created

    6) Now execute that file

    7) Now run the file where session value displayed,
    if this page shows undefined index error that means you have unset session. Thank you for watching this video

Note: This file is hosted on Youtube.com NOT on sch.gdn server and we do not upload the file. If you think this is an illegal file please report to Youtube with url https://www.youtube.com/watch?v=d03hppbio0I



Loading...
= Song by Country =

 Indonesian  English  Bangla  Hindi  Malayalam  Haryanvi  Chinese  Arabic  Filipino  Deutsche  German  Latin  Punjabi  Portuguese  Thai  Japanese  Russian  Nigerian  Vietnamese  French  Persian  Turkish  Italian  Egyptian  South Indian Movie  South Indian Songs

SBY.GDN SCH.GDN DWH.GDN CSYoutube.Com YoutubeID.Net TopSell.Co.Id TopSell.Net MithrilNetwork.Net MP3TubedYT.Com Majapahit.Net MoviBot.Club Mojokerto.Club YiTunes.Club YT-Api.Com