javascript - Catch an specific cookie in browser made by my script -


i made web site using perl code (cgi) uses cookies manage our users. need make new script using php, i'd use cookie created browser. have cookie name can't catch (document. cookie, $_cookie).

the perl site , new script in same domain in different directory.

  • perl (/cgi-bin/myperlfile.cgi)
  • php (/myphpfile.php)

what can use created cookie?

cookies available browser @ time of page load. if cgi script set cookie, , browser loads myphpfile.php, in myphpfile.php cookie value php variable $mycookie:

<?php $mycookie = $_cookie['name_of_cookie']; 

of course, assuming know name of cookie , domain , paths set compatibly.

you can read @ http://php.net/manual/en/features.cookies.php


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -