php : Set Cookie agar bisa digunakan lintas direktori

Oleh : Abah Razi

بسم الله الرحمن الرحيم

Agar Cookie yang kita set dapat digunakan lintas direktori, maka kita dapat mengesetnya seperti berikut :


setcookie( "userlogin", "anonymous", $date_of_expiry, "/" ) ;

Yakni dengan menambahkan “/” di bagian terakhir setcookie.

About Reza Ervani 426 Articles
Adalah pendiri programming.rezaervani.com -

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.