Skip to main content
Share Your Experience: Take the 2024 Developer Survey
6 votes

Save data to cookie

The problem being your code will never work the first time cause your trying to set a cookie value based on the get value, which is always null as you're never setting the initial value. To set a ...
Lodder's user avatar
  • 26.9k
4 votes

Problem to get cookies at the remote server

Below should work for you. This was taken from [This Answer][1] //GET JOOMLA COOKIES $inputCookie = JFactory::getApplication()->input->cookie; //GET SPECIFIC COOKIES DATA $value = $...
Terry Carter's user avatar
  • 1,812
3 votes
Accepted

How to retrieve all essential cookies used by Joomla?

You retrieve cookies in Joomla 3 by: JFactory::getApplication()->input->cookie->get('cookiename'); The cookie set in your print_r($_COOKIE) is the session cookie, this is usually referenced ...
Grant G's user avatar
  • 714
3 votes

Do cookies set by Joomla need changes because of the new samesite requirement?

PHPSESSID is a server generated session cookie. If your server is on PHP7.3+ you can set samesite and secure parameters for it in php.ini Along the lines of: session.cookie_secure=On session....
Robert Loncaric's user avatar
3 votes

Joomla API for identifying if new visitor?

Assuming you have a database table setup for this, you can use the following code to perform you check: // This function is taken from my own extension public function getIpAddress() { $server =...
Lodder's user avatar
  • 26.9k
2 votes

How to use cookies to populate RSForm fields without notices/warnings?

You have posted snippets that are using two separate means of updating the form. The javascript-leveraging snippet is updating the form AFTER the form elements have already been generated. This ...
mickmackusa's user avatar
  • 4,801
2 votes

Do I need to complete the cookie domain and path information in Joomla?

The ‘Domain’ Attribute • With domain set, cookies will be sent to that domain and all its subdomains • The risk with subdomains is lower than when scoped to parent domain, but still relevant • Remove ...
Marc Will's user avatar
1 vote
Accepted

Can't Access Cookie From Plugin That Was Set in Another Extension

The problem is in how the cookie was set. If you try to set only the cookie's name and value like this, you fall back on a lot of default values: $cookie = JFactory::getApplication()->input->...
1 vote

Can't Access Cookie From Plugin That Was Set in Another Extension

I was able to see the $__COOKIE object through an IDE(PHPStorm) and by running your code snippet in a couple of the core plugins that are triggered by onUserAfterLogin to show $__COOKIE is properties ...
Irata's user avatar
  • 3,947
1 vote

Set Joomla cookie via cURL from external website

You should think of cURL as its own separate browser. It has no ties to IE, Firefox, Chrome, or whatever browser you use. Just like Firefox has its own cookies and IE has its own cookies, cURL can ...
James's user avatar
  • 652
1 vote

Issues with cookie bot on Joomla 3x and jQuery

I'm still a little bit blind regarding your issue but I try to give you some direction and maybe we could solve this. There are many ways to add cookiebot to the site, I have never used Google Tag ...
Zollie's user avatar
  • 2,936
1 vote

How to use cookies to populate RSForm fields without notices/warnings?

For one, you are declaring: $inputCookie->set('rsformdatacountry', $_POST['form']['country']); This means that the rsformdatacountry cookie value is a string (not an array). This is appropriate ...
mickmackusa's user avatar
  • 4,801
1 vote

How to change the cookie name on every Session in JOOMLA?

In joomla we had the Joomla Registration and login plugins and modules. if you can use it. it automatically generate the cookies also. use it. then you can get the good result.
B V S A Kumar's user avatar
1 vote

Joomla API for identifying if new visitor?

I went down this rabbit hole several years ago as a self-educating endeavor. You can go to the extent of leveraging a blend of server-side and client-side to sniff/frisk/detect a device. The truth ...
mickmackusa's user avatar
  • 4,801
1 vote

Joomla API for identifying if new visitor?

Just to clear a few things: I don't think there is anything that can tell this, not only in Joomla but in anything in the web. Under certain conditions you may be able to tell if a certain browser was ...
FFrewin's user avatar
  • 19.7k
1 vote

Save data to cookie

This can help you. https://stackoverflow.com/questions/16206662/how-to-use-cookies-from-a-component use setvar and getString methods JRequest::setVar($var, $value, 'cookie'); JRequest::getString($...
Info Truth's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible