Hot answers tagged

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 ...
user avatar
  • 26.5k
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 = $...
user avatar
  • 1,737
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 ...
user avatar
  • 694
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....
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 =...
user avatar
  • 26.5k
2 votes

How do I set options for JHtmlTabs with Bootstrap

Simply this works for me <?php $options = array( 'active' => 'tab1_id' // Not in docs, but DOES work ); ?> <?php echo JHtml::_('bootstrap.startTabSet', 'ID-Tabs-Group', $options);?...
user avatar
  • 232
2 votes
Accepted

How do I set options for JHtmlTabs with Bootstrap

This is not an answer to the question, but is a solution to the problem that prompted the question using the jQuery Cookie Plugin: jQuery(document).ready(function($) { var listItems = $("#...
user avatar
  • 7,685
2 votes

Setting a cookie after an RSForm has been completed

You could try using a plugin called Simple Pop-Up. It's a plugin that will display anything between {simplepopup} tags in a modal popup. The tags can be added to articles, modules or basically any ...
user avatar
  • 13.3k
2 votes

Setting a cookie after an RSForm has been completed

I would personally stay away from cookies in this instance, as they can be deleted from the browser. Instead, you would be better off (If the user must be logged in first): Creating a database table ...
user avatar
  • 26.5k
2 votes

Set cookie in from joomla plugin

First of all you could first try to fit this code in your template. If may give you more flexibility there. onAfterRender does not seem right for me to fiddle the content and to set cookies / read ...
user avatar
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 ...
user avatar
2 votes

Cookie Law and Folcomedia - Cookies Alert

You should not load jQuery from google for a simple reason. There is almost 90% chance it will be loaded from system (so better require it from system like this: JHTML::_('jquery.framework')) so you ...
user avatar
2 votes

Remember Me feature not working Joomla 2.5

I have had a similiar problem. And the solution was to configure better JCHoptimize. In my case it was a javascript conflict.
user avatar
  • 367
2 votes

Remember Me feature not working Joomla 2.5

In the global configuration settings for Joomla there is a Cookie Domain setting - be sure this is set. Also be sure that you are accessing the site consistently. If you have set the domain to be ...
user avatar
  • 171
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 ...
user avatar
  • 4,448
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 ...
user avatar
  • 461
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 ...
user avatar
  • 2,436
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 ...
user avatar
  • 4,448
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 ...
user avatar
  • 4,448
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 ...
user avatar
  • 19.5k
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($...
user avatar
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.
user avatar
1 vote

Include module position if cookie value is set

The way you use cookies seems wrong, unless there is a library that you use here. According to quirksmode you would use something like if(window.location.href.indexOf("promotionpage") > -1) { ...
user avatar
  • 953
1 vote

Joomla 3.x admin login error

A few of quick tips: Clear Joomla caches (through your FTP client - remove any cache files in the cache folder). Clear your browser's cache and cookies. Clear Sessions in Joomla database. Make ...
user avatar
  • 19.5k
1 vote

How to set login session in Joomla 3 as persistent cookie?

In the Joomla backend go to: System (top menu) >> Global Configuration >> System and you will see an option called Session Lifetime which by default is set to 15. This value defines the minutes. You ...
user avatar
  • 26.5k

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