what happens to form data if we destroy session

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kummu4help
    New Member
    • Nov 2008
    • 14

    #1

    what happens to form data if we destroy session

    Hi,
    i am posting data from a.php to b.php;
    a.php is something like this
    Code:
    <html>
    <head>
    <body>
    <form method="post" action="b.php">
    </form>
    </body>
    </html>
    b.php is something like this
    Code:
    <?
    session_start();
    session_destroy();
    //i will get data here using  $_post functions
    ?>
    so i have a doubt here.Because i am destroying session in b.php, does it destroy form data that is coming from a.php also or the form data(of a.php) will be intact and available after the first two lines in b.php(even after destroying session).
  • xNephilimx
    Recognized Expert New Member
    • Jun 2007
    • 213

    #2
    The sessions have nothing to do with the request methods (get, post), with or without sessions you should get the $_POST array correctly.

    Comment

    Working...