Home » Interview » Technology

How to set cookies?

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

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion