Skip to main content
Inspiring
February 5, 2021
Answered

_SISSION returns an empty array in PHP

  • February 5, 2021
  • 1 reply
  • 421 views

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 has been closed for replies.
Correct answer Nancy OShea

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

 

1 reply

Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
February 5, 2021

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

 

Nancy O'Shea— Product User & Community Expert
Inspiring
February 5, 2021

 Thanks!

That did it.

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

 

 

Nancy OShea
Community Expert
Community Expert
February 5, 2021

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.

 

Nancy O'Shea— Product User & Community Expert