Wednesday, 15 July 2015

php - How to make cookie access for entire root folder -



php - How to make cookie access for entire root folder -

i want create cookie accessible entire root folder, how can ??

<?php $value="test"; setcookie("test",$value, time()+3600, '/', null, 0 ); if($_cookie['test']=="test") { echo 'ok'; } else { echo 'not ok'; }

it works particular folder cookie declared ,

ie., localhost\proj\app\views\settings\client*

but want create accessible on folder

localhost\proj\app\views\*

how can ?

cookies can restricted allowing sub domain access,to create cookie available set domain *.domain.com.

php cookies

No comments:

Post a Comment