Results 1 to 2 of 2

Thread: what is session concept in php?

  1. #1
    Join Date
    Jan 2008
    Posts
    2

    Default what is session concept in php?

    plz explain me with a real time example...
    Powered by Yahoo!

  2. #2
    Join Date
    Jan 2008
    Posts
    1

    Default

    Session holds data while unless it ends. It ends if user closes browser or is idle for 30min-1h.
    session_start();
    $_SESSION['user'] = "Andrius";//in index.php takes the user to session;
    when you ask for it in any other page(for example buy.php)
    session_start();
    echo $_SESSION['user'];//will output you the value Andrius;
    Powered by Yahoo!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •