Skip to main content
Inspiring
Feb 5, 2021 5:57 PM UTC
Answered

_SISSION returns an empty array in PHP

Hi,

Today, after sometime I had to change something in my website.

I havn't touched anything since the last time it was working and now, for some reason, the $_SESSION[..] array returns empty variables.

I did not attach any code since I do not think this is acode issue due to teh following:

 

  • I recently intalled DW 2021 but the problem occurs both in DW 2020 & 2021
  • I use xampp as a testing server. Both Apahce & MySQL are woking fine. 
  • This only happen whne I try to previw the page using the built in preview funtion in DW.
  • It happens both in chrome and edge where the address bar shoes :
    http://127.0.0.1:53154/preview/app/index.html
  • It doen not happen on the real webpag (all is woring well)
  • It does not happen when I access the web page locally directly (all is working well):
    http://localhost/<mySite>/<myPage>.php

This leads me to think it is a DW/adobe preview issue.
What can I check?

This topic is closed to new replies. Start a new post to keep the conversation going.
Nancy OShea
Nancy OSheaCorrect answer
Community Expert
Feb 5, 2021 6:42 PM UTC

Turn off Real-Time Preview from your Preferences.  You don't need it.

 

Nancy O'Shea— Product User & Community Expert

3 replies

Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
Feb 5, 2021 6:42 PM UTC

Turn off Real-Time Preview from your Preferences.  You don't need it.

 

Translate
Nancy O'Shea— Product User & Community Expert
Inspiring
Feb 5, 2021 7:04 PM UTC

 Thanks!

That did it.

Is this option new? How come it used to work and now it stopped working?

 

 

Translate
Nancy OShea
Community Expert
Community Expert
Feb 5, 2021 8:39 PM UTC

I don't remember exactly when they added the Preference to turn off Real-Time Preview.  Maybe you removed Preferences when you upgraded which reverted it to the default settings.

 

Translate
Nancy O'Shea— Product User & Community Expert