Top "Setcookie" questions

The setcookie function sends an HTTP cookie to a client.

Cookies on localhost with explicit domain

I must be missing some basic thing about cookies. On localhost, when I set a cookie on server side and …

cookies setcookie
Check if a PHP cookie exists and if not set its value

I am working on a multilingual site so I tried this approach: echo $_COOKIE["lg"]; if (!isset($_COOKIE["lg"])) setcookie("…

php cookies setcookie
How can I send cookies using PHP curl in addition to CURLOPT_COOKIEFILE?

I am scraping some content from a website after a form submission. The problem is that the script is failing …

php cookies curl setcookie
Domain set cookie for subdomain

I looked in many questions about cookies but I didn't find an answer on my problem. I have following scenario: …

http cookies setcookie
Set-Cookie in HTTP header is ignored with AngularJS

I'm working on an application based on AngularJS on client side and Java for my API (Tomcat + Jersey for WS) …

javascript angularjs cookies setcookie
setting cross-subdomain cookie with javascript

How should I add domain support to these functions? I want to achieve that .example.com is declared as domain, …

javascript setcookie
How to retrieve cookie value in CodeIgniter?

I can print the session values in codeigniter by print_r($this->session->userdata); How can I print …

php codeigniter cookies setcookie
setcookie() does not set cookie in Google Chrome

I am going through some PHP tutorials on how to set cookies. I have noticed that cookies are successfully set …

php google-chrome setcookie
php setcookie domain

Some application, not written by me, and not in PHP, creates a cookie for the domain "www.domain.com". I …

php cookies setcookie
how to set this cookie to never expire

I have a function to create a cookie passing in the name, value and expiration (in days) of the cookie. …

jquery cookies setcookie