Re: php session
Posted: Mon Mar 19, 2012 3:08 am
session enables you to to share a session variable though out all pages therefore passing a variable to other pages that will expire upon closing the browser
the above holds session variable that splits each item in the array as one item named $one_item.
The array will then be empty as soon as the browser is closed.
Code: Select all
foreach($_SESSION["array"] as $one_item)Code: Select all
$one_itemCode: Select all
The array will then be empty as soon as the browser is closed.