session

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • princelindie
    New Member
    • Feb 2008
    • 28

    session

    have a site running php pages. Now for some reason the logged_in_user is not being transfer to the new page. any suggestions.
    my code begin with
    [<?session_start ()]
    has
    [$logged_in_user =$user;
    session_registe r("logged_in_us er");

    ]

    any suggestion why logged_in_user is not being transfer from page to page.
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Originally posted by princelindie
    have a site running php pages. Now for some reason the logged_in_user is not being transfer to the new page. any suggestions.
    my code begin with
    [<?session_start ()]
    has
    [$logged_in_user =$user;
    session_registe r("logged_in_us er");

    ]

    any suggestion why logged_in_user is not being transfer from page to page.
    session_registe r() is deprecated.
    Use $_SESSION
    [php]
    <?php
    session_start() ;
    $_SESSION['logged_in_user '] = $user;
    ?>
    [/php]

    Comment

    • princelindie
      New Member
      • Feb 2008
      • 28

      #3
      It is still not being transfered to the next page

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        Originally posted by princelindie
        It is still not being transfered to the next page
        What do you have (php) on the next page?
        And show us it correctly; not with brackets around sections.

        Comment

        • princelindie
          New Member
          • Feb 2008
          • 28

          #5
          I got through..
          Had to call it back in same fashion.
          $_SESSION['logged_in_user '];

          Comment

          • Markus
            Recognized Expert Expert
            • Jun 2007
            • 6092

            #6
            Originally posted by princelindie
            I got through..
            Had to call it back in same fashion.
            $_SESSION['logged_in_user '];
            So, you've done it now?

            Comment

            Working...