How To Set Cookies In PHP

  • 31 Dec, 2011

    setcookie('variable','value','time');variable - name of the cookie variablevalue - value of the cookie variabletime - expiry timeExample: setcookie('Test',$i,time()+3600);Test - cookie variable name$i - value of the variable 'Test'time()+3600 - denotes that the cookie will expire after an one hour

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 All rights reserved.