what happens if we destroy session data

will the form data available after destroying the session?

Page 1 of 1

2 Replies - 1728 Views - Last Post: 09 January 2009 - 08:42 PM Rate Topic: -----

#1 kummu4help   User is offline

  • D.I.C Head
  • member icon

Reputation: 4
  • View blog
  • Posts: 245
  • Joined: 05-August 08

what happens if we destroy session data

Post icon  Posted 09 January 2009 - 06:04 AM

Hi,
i am posting data from a.php to b.php;
a.php is something like this
<html>
<head>
<body>
<form method="post" action="b.php">
</form>
</body>
</html>

b.php is something like this
<?
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).

Is This A Good Question/Topic? 0
  • +

Replies To: what happens if we destroy session data

#2 Valek   User is offline

  • The Real Skynet
  • member icon

Reputation: 544
  • View blog
  • Posts: 1,713
  • Joined: 08-November 08

Re: what happens if we destroy session data

Posted 09 January 2009 - 06:23 AM

Destroying the session only clears out all the session data and dumps everything in $_SESSION. $_GET, $_POST, etc. are left untouched.
Was This Post Helpful? 0
  • +
  • -

#3 kummu4help   User is offline

  • D.I.C Head
  • member icon

Reputation: 4
  • View blog
  • Posts: 245
  • Joined: 05-August 08

Re: what happens if we destroy session data

Posted 09 January 2009 - 08:42 PM

Thanks valek.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1