Set-Cookie

linuxoid
17 Posts
linuxoid posted this 4 weeks ago

Hi!
How can I remove headers from a template

Set-Cookie: componentType=default; path=/
Set-Cookie: componentType=blog; path=/
Set-Cookie: componentStyle=blog_2; path=/

Hi! How can I remove headers from a template Set-Cookie: componentType=default; path=/ Set-Cookie: componentType=blog; path=/ Set-Cookie: componentStyle=blog_2; path=/
Vote to pay developers attention to this features or issue.
12 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 4 weeks ago

Hello Mike,

Themler doesn't add or control cookies. What template type do you use (Wordpress, Joomla, etc)?
Have you tried disabling all 3rd party plugins?

Gina
Themler support

Hello Mike, Themler doesn't add or control cookies. What template type do you use (Wordpress, Joomla, etc)? Have you tried disabling all 3rd party plugins? Gina Themler support
linuxoid
17 Posts
linuxoid posted this 4 weeks ago

Hi
joomla

Hi joomla
Support Team
Support Team posted this 4 weeks ago

I haven't found such headers in exported blank Joomla theme. Could you please disable all cookie related extensions and test again?
You can also test standard Joomla theme to see if those headers still come.

Gina
Themler Support

I haven't found such headers in exported blank Joomla theme. Could you please disable all cookie related extensions and test again? You can also test standard Joomla theme to see if those headers still come. Gina Themler Support
linuxoid
17 Posts
linuxoid posted this 3 weeks ago

Hi!
There are no headers on the standard template ...
Checked a 404 error that is not handled by plugins and also got two extra headers:

php 7.1 - 7.3

Set-Cookie: componentType=default; path=/
Set-Cookie: componentType=error404; path=/

grep -r "componentType"

templates/my/component.php: if ($parts[0] == $_COOKIE['componentType'] && isset($_COOKIE['componentStyle']))
templates/my/editor/component.php: if ($parts[0] == $_COOKIE['componentType'] && isset($_COOKIE['componentStyle']))
templates/my/editor/functions.php: setcookie('componentType', $templateType, 0, '/');
templates/my/functions.php: setcookie('componentType', $templateType, 0, '/');

not found anywhere else

Hi! There are no headers on the standard template ... Checked a 404 error that is not handled by plugins and also got two extra headers: php 7.1 - 7.3 Set-Cookie: componentType=default; path=/ Set-Cookie: componentType=error404; path=/ grep -r "componentType" templates/my/component.php: if ($parts[0] == $_COOKIE['componentType'] && isset($_COOKIE['componentStyle'])) templates/my/editor/component.php: if ($parts[0] == $_COOKIE['componentType'] && isset($_COOKIE['componentStyle'])) templates/my/editor/functions.php: setcookie('componentType', $templateType, 0, '/'); templates/my/functions.php: setcookie('componentType', $templateType, 0, '/'); not found anywhere else

Last edited 3 weeks ago by linuxoid

linuxoid
17 Posts
linuxoid posted this 3 weeks ago

php 7.0
Set-Cookie: componentType=default; path=/
Set-Cookie: componentStyle=common; path=/

php 7.0 Set-Cookie: componentType=default; path=/ Set-Cookie: componentStyle=common; path=/
linuxoid
17 Posts
linuxoid posted this 3 weeks ago

A site where there are no plugins or modules
PHP/7.3.6
Set-Cookie: componentType=default; path=/
Set-Cookie: componentType=blog; path=/

A site where there are no plugins or modules PHP/7.3.6 Set-Cookie: componentType=default; path=/ Set-Cookie: componentType=blog; path=/
Support Team
Support Team posted this 3 weeks ago

Could you please attach your theme?

Gina

Could you please attach your theme? Gina
linuxoid
17 Posts
linuxoid posted this 3 weeks ago

Here, so that it is indexed...)I have a lot of them, and they all generate such headers

Here, so that it is indexed...)I have a lot of them, and they all generate such headers
Support Team
Support Team posted this 3 weeks ago

Unfortunately, your attachment hasn't come through.
I have double-checked default Themler template and checked its files, but couldn't find such header.
We will keep looking, I hope your template would help.

Gina

Unfortunately, your attachment hasn't come through. I have double-checked default Themler template and checked its files, but couldn't find such header. We will keep looking, I hope your template would help. Gina
linuxoid
17 Posts
linuxoid posted this 3 weeks ago

Hi
attachment

Hi attachment
Support Team
Support Team posted this 2 weeks ago

The only way to remove those lines is to manually edit files that you have already mentioned:

templates/my/component.php
templates/my/editor/component.php
templates/my/editor/functions.php
templates/my/functions.php

In order to edit them , remove this function:

Screenshot-2.png

Gina
Themler support

The only way to remove those lines is to manually edit files that you have already mentioned: templates/my/component.php templates/my/editor/component.php templates/my/editor/functions.php templates/my/functions.php In order to edit them , remove this function: !Screenshot-2.png! Gina Themler support
linuxoid
17 Posts
Is Solution
linuxoid posted this 2 weeks ago

Hi!
thanks for the support

Comment out:

Set-Cookie: componentType=default; path=/
/templates/my/functions.php

#       setcookie('componentType', $templateType, 0, '/');

Set-Cookie: componentType=blog; path=/
/templates/my/library/Designe/Page.php

#        setcookie('componentStyle', $template, 0, '/');

Hi! thanks for the support Comment out: Set-Cookie: componentType=default; path=/ /templates/my/functions.php # setcookie('componentType', $templateType, 0, '/'); Set-Cookie: componentType=blog; path=/ /templates/my/library/Designe/Page.php # setcookie('componentStyle', $template, 0, '/');

Last edited 2 weeks ago by linuxoid

You must log in or register to leave comments