Jump to content

$_SESSION


richie_ropey

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]
Link to comment
https://forums.phpfreaks.com/topic/4596-_session/#findComment-16095
Share on other sites

Archived

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

×
×
  • Create New...

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.