php session

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
asch
Forum Newbie
Posts: 3
Joined: Mon Mar 19, 2012 2:50 am

Re: php session

Post 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.
User avatar
jayson.ph
Forum Contributor
Posts: 165
Joined: Mon Jan 02, 2012 9:20 am
Location: MP
Contact:

Re: php session

Post by jayson.ph »

Lot of example in net and find it at google.com
Post Reply