Jump to content

Archived

This topic is now archived and is closed to further replies.

richie_ropey

$_SESSION

Recommended Posts

Certainly, but what would you like to do with them?

To process them one by one and write them out to the page.
[code]<?php

while (list($key, $val)=each($_SESSION)) {
  echo "[".$key."]=>[".$val."]<br />";
}

?>[/code]

If you want you can change that code around a bit or you a for each instead of the while, but the short and sweet just to see all the elements of the array and their values is

[code]<?php print_r($_SESSION); ?>[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.