tags:

views:

281

answers:

2

hi I was doing something but I can't use JavaScript in it ... i want to get the cookies but without using javascript

Is there is any way to get cookies without using javascript ? i want to get the same output of document.cookie

thx

+8  A: 

Use $_COOKIE['cookie_name'] in PHP.

$_COOKIE is an array containing all cookies.

Gerardo
+1  A: 

You can't get the same input as in document.cookie, but you can access directly them from $_COOKIE just like macaco said

if you need to set cookie you can do this by using the setcookie() method from php

http://www.php.net/setcookie

cheers

PERR0_HUNTER