Skip to content

Commit 5557390

Browse files
authored
IBX-8811: Rebranded SiteAccess session prefix (#52)
* IBX-8811: Rebranded SiteAccess session prefix * [tmp] dev dependency to `ibexa/core` * [tmp] removed dev dependency to `ibexa/core`
1 parent 64f8418 commit 5557390

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

docs/varnish/vcl/varnish5.vcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ sub vcl_recv {
5151
if (req.http.cookie) {
5252
set req.http.cookie = ";" + req.http.cookie;
5353
set req.http.cookie = regsuball(req.http.cookie, "; +", ";");
54-
set req.http.cookie = regsuball(req.http.cookie, ";(eZSESSID[^=]*)=", "; \1=");
54+
set req.http.cookie = regsuball(req.http.cookie, ";(IBX_SESSION_ID[^=]*)=", "; \1=");
5555
set req.http.cookie = regsuball(req.http.cookie, ";(ibexa-[^=]*)=", "; \1=");
5656
set req.http.cookie = regsuball(req.http.cookie, ";[^ ][^;]*", "");
5757
set req.http.cookie = regsuball(req.http.cookie, "^[; ]+|[; ]+$", "");

docs/varnish/vcl/varnish6.vcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ sub vcl_recv {
5151
if (req.http.cookie) {
5252
set req.http.cookie = ";" + req.http.cookie;
5353
set req.http.cookie = regsuball(req.http.cookie, "; +", ";");
54-
set req.http.cookie = regsuball(req.http.cookie, ";(eZSESSID[^=]*)=", "; \1=");
54+
set req.http.cookie = regsuball(req.http.cookie, ";(IBX_SESSION_ID[^=]*)=", "; \1=");
5555
set req.http.cookie = regsuball(req.http.cookie, ";(ibexa-[^=]*)=", "; \1=");
5656
set req.http.cookie = regsuball(req.http.cookie, ";[^ ][^;]*", "");
5757
set req.http.cookie = regsuball(req.http.cookie, "^[; ]+|[; ]+$", "");

docs/varnish/vcl/varnish7.vcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ sub vcl_recv {
4949
if (req.http.cookie) {
5050
set req.http.cookie = ";" + req.http.cookie;
5151
set req.http.cookie = regsuball(req.http.cookie, "; +", ";");
52-
set req.http.cookie = regsuball(req.http.cookie, ";(eZSESSID[^=]*)=", "; \1=");
52+
set req.http.cookie = regsuball(req.http.cookie, ";(IBX_SESSION_ID[^=]*)=", "; \1=");
5353
set req.http.cookie = regsuball(req.http.cookie, ";(ibexa-[^=]*)=", "; \1=");
5454
set req.http.cookie = regsuball(req.http.cookie, ";[^ ][^;]*", "");
5555
set req.http.cookie = regsuball(req.http.cookie, "^[; ]+|[; ]+$", "");

src/bundle/AppCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class AppCache extends HttpCache implements CacheInvalidation
3434
public function __construct(KernelInterface $kernel, $cacheDir = null)
3535
{
3636
parent::__construct($kernel, $cacheDir);
37-
$this->addSubscriber(new UserContextListener(['session_name_prefix' => 'eZSESSID']));
37+
$this->addSubscriber(new UserContextListener(['session_name_prefix' => 'IBX_SESSION_ID']));
3838
$this->addSubscriber(new PurgeTagsListener(['tags_method' => 'PURGE', 'client_ips' => $this->getInternalAllowedIPs()]));
3939
$this->addSubscriber(new PurgeListener(['client_ips' => $this->getInternalAllowedIPs()]));
4040
}

src/bundle/Resources/config/fos_http_cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ user_context:
99
enabled: true
1010
hash_cache_ttl: 600
1111
# NOTE: These are also defined/used in AppCache, in Varnish VCL, and Fastly VCL
12-
session_name_prefix: eZSESSID
12+
session_name_prefix: IBX_SESSION_ID

0 commit comments

Comments
 (0)