Skip to content

Commit

Permalink
IBX-8811: Rebranded SiteAccess session prefix (#52)
Browse files Browse the repository at this point in the history
* IBX-8811: Rebranded SiteAccess session prefix

* [tmp] dev dependency to `ibexa/core`

* [tmp] removed dev dependency to `ibexa/core`
  • Loading branch information
konradoboza authored Oct 2, 2024
1 parent 64f8418 commit 5557390
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/varnish/vcl/varnish5.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ sub vcl_recv {
if (req.http.cookie) {
set req.http.cookie = ";" + req.http.cookie;
set req.http.cookie = regsuball(req.http.cookie, "; +", ";");
set req.http.cookie = regsuball(req.http.cookie, ";(eZSESSID[^=]*)=", "; \1=");
set req.http.cookie = regsuball(req.http.cookie, ";(IBX_SESSION_ID[^=]*)=", "; \1=");
set req.http.cookie = regsuball(req.http.cookie, ";(ibexa-[^=]*)=", "; \1=");
set req.http.cookie = regsuball(req.http.cookie, ";[^ ][^;]*", "");
set req.http.cookie = regsuball(req.http.cookie, "^[; ]+|[; ]+$", "");
Expand Down
2 changes: 1 addition & 1 deletion docs/varnish/vcl/varnish6.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ sub vcl_recv {
if (req.http.cookie) {
set req.http.cookie = ";" + req.http.cookie;
set req.http.cookie = regsuball(req.http.cookie, "; +", ";");
set req.http.cookie = regsuball(req.http.cookie, ";(eZSESSID[^=]*)=", "; \1=");
set req.http.cookie = regsuball(req.http.cookie, ";(IBX_SESSION_ID[^=]*)=", "; \1=");
set req.http.cookie = regsuball(req.http.cookie, ";(ibexa-[^=]*)=", "; \1=");
set req.http.cookie = regsuball(req.http.cookie, ";[^ ][^;]*", "");
set req.http.cookie = regsuball(req.http.cookie, "^[; ]+|[; ]+$", "");
Expand Down
2 changes: 1 addition & 1 deletion docs/varnish/vcl/varnish7.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ sub vcl_recv {
if (req.http.cookie) {
set req.http.cookie = ";" + req.http.cookie;
set req.http.cookie = regsuball(req.http.cookie, "; +", ";");
set req.http.cookie = regsuball(req.http.cookie, ";(eZSESSID[^=]*)=", "; \1=");
set req.http.cookie = regsuball(req.http.cookie, ";(IBX_SESSION_ID[^=]*)=", "; \1=");
set req.http.cookie = regsuball(req.http.cookie, ";(ibexa-[^=]*)=", "; \1=");
set req.http.cookie = regsuball(req.http.cookie, ";[^ ][^;]*", "");
set req.http.cookie = regsuball(req.http.cookie, "^[; ]+|[; ]+$", "");
Expand Down
2 changes: 1 addition & 1 deletion src/bundle/AppCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class AppCache extends HttpCache implements CacheInvalidation
public function __construct(KernelInterface $kernel, $cacheDir = null)
{
parent::__construct($kernel, $cacheDir);
$this->addSubscriber(new UserContextListener(['session_name_prefix' => 'eZSESSID']));
$this->addSubscriber(new UserContextListener(['session_name_prefix' => 'IBX_SESSION_ID']));
$this->addSubscriber(new PurgeTagsListener(['tags_method' => 'PURGE', 'client_ips' => $this->getInternalAllowedIPs()]));
$this->addSubscriber(new PurgeListener(['client_ips' => $this->getInternalAllowedIPs()]));
}
Expand Down
2 changes: 1 addition & 1 deletion src/bundle/Resources/config/fos_http_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ user_context:
enabled: true
hash_cache_ttl: 600
# NOTE: These are also defined/used in AppCache, in Varnish VCL, and Fastly VCL
session_name_prefix: eZSESSID
session_name_prefix: IBX_SESSION_ID

0 comments on commit 5557390

Please sign in to comment.