Session php works normally on xampp local server but when uploaded to cloud 9, session variables not working

  Kiến thức lập trình

I have a session variable to store items. It works on xampp as intended, and I can add itmes to the session variable, and display all the items that have been added. However on cloud 9 aws, when I add to the session variable, it overrides whatever item there is inside, instead of adding (not erasing).

I have changed nothing but it works on xampp but not on cloud 9.

Is there anything I need to know about cloud 9? are sessions working differently on cloud 9 aws?

Any help would be appreciated.

I thought perhaps in cloud 9 session variables clash with each other, so I even commented out another file that used the same session variable but it didn’t work.

New contributor

nom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.