Steps to reproduce the issue
- Install Joomla 5.1.0
- Configure the global->site->cookie_domain to .yourdomain (including the preceding dot).
- Save, logout, launch incognito, different browser, or clear cache and restart browser to ensure you're getting the latest cookie.
- Visit and login to the frontend or admin section of website.
- Check the cookies in developer tools.
Expected result
- Joomla session cookie with domain= .yourdomain (including preceding dot)
- joomla_user_state cookie with domain= .yourdomain (including preceding dot)
Actual result
- Joomla session cookie with domain= yourdomain (without preceding dot)
- joomla_user_state cookie with domain= .yourdomain (including preceding dot)
System information (as much as possible)
Setting Value
PHP Built On Linux SBS-dev-1 6.5.0-1018-azure #19~22.04.2-Ubuntu SMP Thu Mar 21 16:45:46 UTC 2024 x86_64
Database Type mysql
Database Version 10.6.16-MariaDB-0ubuntu0.22.04.1
Database Collation utf8mb4_general_ci
Database Connection Collation utf8mb4_general_ci
Database Connection Encryption None
Database Server Supports Connection Encryption No
PHP Version 8.3.6
Web Server nginx/1.18.0
WebServer to PHP Interface fpm-fcgi
Joomla! Version Joomla! 5.1.0 Stable [ Kudumisha ] 16-April-2024 16:00 GMT
Joomla Backward Compatibility Plugin Enabled (classes_aliases:"1", es5_assets:"1")
User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Additional comments
- testing in both safari and chrome
- tested with both shared sessions on and off
- image showing example attached
Closing as having a pull request. Please test #43834 . Thanks in advance.