Jump to content

$session is set but empty - $_SESSION has data?

Recommended Posts

Hi all,

PW 3.0.184

On trying to diagnose a form issue it's become clear that the PW $session array is empty. $_SESSION has data in it but PW's own $session variable is empty, not even the User ID is there?
For example adding this at the top of any page:

<?php print_r($session); ?>

Results in this:

ProcessWire\Session Object ()

But this:

<?php print_r($_SESSION); ?>

Outputs user and other data.

I'm trying to use some data that woudl be way easier using PW's $session and am drawing a blank.

Grateful of any ideas or past experiences which may help diagnose this!

Link to comment
Share on other sites

  • prestoav changed the title to $session is set but empty - $_SESSION has data?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...