Article 6R5TH Cookies wouldn't get set with PHP

Cookies wouldn't get set with PHP

by
HosAdeeb
from LinuxQuestions.org on (#6R5TH)
Hi there,
the problem I'm facing is this:
  • On my home machine, I successfully implemented a cookie-based scheme through PHP.
  • But then, on uploading my script on the server, the cookies wouldn't get set.
  • On my home machine, PHP is version 8.2.14, while on the server it's version 8.3.8.
  • I don't think it has anything to do with a setting in the browser, since we're not talking about third-party cookies. Besides, I was testing both times using the self-same browser.
  • I'm not sure if the server being secured (https) is the reason, but, still, I had set the cookies "secure" option to "true". But in vain.
I'd be grateful if anyone could point me in the right direction.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments