Joomla does not see cookie on loading a view by $JApp->redirect - why?

For Joomla! 3.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Post Reply
gba
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 117
Joined: Tue Jun 03, 2014 3:37 pm

Joomla does not see cookie on loading a view by $JApp->redirect - why?

Post by gba » Thu Dec 07, 2023 5:21 pm

Hello!

On a view of my component I am setting a cookie via javascript, if it is not existing, yet.
If I reload that page, also in PHP the cookie is available.
But if the view is displayed by a $JApp->redirect call, that cookie is not available in PHP - neither using $_COOKIE, nor $JApp->input->cookie.
All other cookies are available in both cases - on normal page loading as well as using $JApp->redirect.

What am I doing wrong?

Thank you very much in advance for your very valued help!

Kind regards,
Gerald

Post Reply

Return to “Joomla! 3.x Coding”