Working with sessions

Discussion in 'PHP' started by rushdie, Jul 2, 2007.

  1. #1
    Dear friends,
    will any1 refer me any tutorials on how to handle sessions thru' php?
     
    rushdie, Jul 2, 2007 IP
  2. ansi

    ansi Well-Known Member

    Messages:
    1,483
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    100
    #2
    page1.php
    
    <?php   
       session_start();
       $_SESSION['foo'] = "bar";
    ?>
    
    PHP:
    page2.php
    
    <?php   
       session_start();
       echo $_SESSION['foo'];
    ?>
    
    PHP:
    that's pretty much the basis of it. for further reading, check out http://www.phpexamples.net/content/view/17/
     
    ansi, Jul 2, 2007 IP
  3. rushdie

    rushdie Active Member

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #3
    Do i get full tutorials on the site u refer?
     
    rushdie, Jul 2, 2007 IP
  4. ansi

    ansi Well-Known Member

    Messages:
    1,483
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    100
    #4
    did you look at it? there is previous/next links directly following the sections of the article.
     
    ansi, Jul 2, 2007 IP