diff --git a/eZ/Publish/Core/REST/Server/Output/ValueObjectVisitor/UserSession.php b/eZ/Publish/Core/REST/Server/Output/ValueObjectVisitor/UserSession.php
index <HASH>..<HASH> 100644
--- a/eZ/Publish/Core/REST/Server/Output/ValueObjectVisitor/UserSession.php
+++ b/eZ/Publish/Core/REST/Server/Output/ValueObjectVisitor/UserSession.php
@@ -28,6 +28,7 @@ class UserSession extends ValueObjectVisitor
     public function visit( Visitor $visitor, Generator $generator, $data )
     {
         $visitor->setHeader( 'Content-Type', $generator->getMediaType( 'Session' ) );
+        // @deprecated Since 5.0, this cookie is used for legacy until Static cache support is removed along with this cookie
         $visitor->setHeader( 'Set-Cookie', 'is_logged_in=true; path=/' );
 
         //@todo Needs refactoring, disabling certain headers should not be done this way
Added: deprecated comment