Jump to content

Unable to Log In - "You need to enable cookies before you can use Revive Adserver"


Recommended Posts

Hello there,

I've recently installed the Revive Ad Server 3.2.2 version.

No problems with installation, i logged in and started to configure the zones, publishers, then invocation tags.  Right, all is ok from this point.

On monday, I tried to log in and received the message : "You need to enable cookies before you can use Revive Adserver"

Impossible to log in !  Why ?  No modifications to notify or changes on the server.

I've seen the following post : http://forum.revive-adserver.com/topic/2993-you-need-to-enable-cookies-before-you-can-use-revive-adserver/

at the end we can see a fix, but nothing changes for me ...  https://github.com/revive-adserver/revive-adserver/issues/639

No files or folders permissions problems, no error on the server logs...

Thanks for helping me.


Link to comment
Share on other sites

What port are you running the admin interface on? Port 80 for HTTP, or port 443 for SSL? Anything different?


My problem is solved, the cause was the mutualised server I use is behind a proxy. 

I share here my solution, if it can help somebody :

function phpAds_SessionSetAdminCookie($name, $value)
    $conf = $GLOBALS['_MAX']['CONF'];

    $host = isset($_SERVER['HTTP_X_FORWARDED_HOST'])
      : $_SERVER['HTTP_HOST'];

    return setcookie(
        preg_replace('/:\d+$/', '', $host),



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...