SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2010
    Posts
    453
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    debugging with $_SESSION

    The last line a my script is: include "recalc_direct_price.php";

    recalc_direct_price.php:

    PHP Code:
    <?php
    echo var_dump($_SESSION);
    ?>
    How do I get access to $_SESSION outside the session without first sending $_SESSION data to a mysql table?

    Is that even possible?

  2. #2
    Avid Logophile silver trophy
    ParkinT's Avatar
    Join Date
    May 2006
    Location
    Central Florida
    Posts
    2,337
    Mentioned
    192 Post(s)
    Tagged
    4 Thread(s)
    The session data is temporal. It would be of no use to you 'outside the session'.
    What are you trying to accomplish? What problem needs to be solved?

  3. #3
    SitePoint Evangelist
    Join Date
    Jun 2010
    Posts
    453
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    recalc_direct_price.php is the beginning of a new part of a large front end script. I'd would like to develop it with access to $_SESSION without having to run this large complicated front end script. Sounds like I should substitute a mysql table for the $_SESSION array.

    Any other ideas?

  4. #4
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    72 Post(s)
    Tagged
    0 Thread(s)
    Dont... do it outside the session? Make everything part of the session?
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.

  5. #5
    SitePoint Evangelist
    Join Date
    Jun 2010
    Posts
    453
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    OK then. I'll stop fighting my inclination. Thanks ParkinT and StarLion.


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
  •