Author Topic: How to set cookies in PHP?  (Read 1336 times)

simonbrito12

  • Green Belt
  • *****
  • Posts: 343
  • Karma: +0/-0
How to set cookies in PHP?
« on: December 14, 2014, 06:52:07 PM »
Hello,


How to set cookies in PHP?


Thanks

ehostingpk

  • Yellow Belt
  • **
  • Posts: 45
  • Karma: +0/-0
    • Daurr News
Re: How to set cookies in PHP?
« Reply #1 on: April 24, 2015, 02:02:47 AM »
To set cookie use :
setcookie( "userlogin", "anonymous", $date_of_expiry, "/", "example.com" );

TaengBulok

  • Blue Belt
  • ****
  • Posts: 166
  • Karma: +0/-0
Re: How to set cookies in PHP?
« Reply #2 on: October 15, 2015, 08:46:25 PM »