Fixed foreach bug when loading data on a low security level with base64 encoded cookie values