Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.