Tell us how do you create a persistent cookie in php?

Submitted by: Muhammad
Cookies will only persist for the time you define. To do it for 1 year you can simply do:

setcookie( "cookieName", 'cookieValue', strtotime( '+1 year' ) ); //set for 1 year
Submitted by: Muhammad

Read Online Jnr PHP/Codeigniter Developer Job Interview Questions And Answers