Page 1 of 1

Re: php session

Posted: Mon Mar 19, 2012 3:08 am
by asch
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

Code: Select all

foreach($_SESSION["array"] as $one_item)
the above holds session variable

Code: Select all

$one_item
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.

Re: php session

Posted: Tue Mar 20, 2012 8:31 pm
by jayson.ph
Lot of example in net and find it at google.com