ibanson Posted January 5, 2016 Report Share Posted January 5, 2016 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/639No files or folders permissions problems, no error on the server logs...Thanks for helping me.Laurent. Quote Link to comment Share on other sites More sharing options...
andrewatfornax Posted January 6, 2016 Report Share Posted January 6, 2016 What port are you running the admin interface on? Port 80 for HTTP, or port 443 for SSL? Anything different? Quote Link to comment Share on other sites More sharing options...
ibanson Posted January 7, 2016 Author Report Share Posted January 7, 2016 What port are you running the admin interface on? Port 80 for HTTP, or port 443 for SSL? Anything different?Hello,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_X_FORWARDED_HOST'] : $_SERVER['HTTP_HOST']; return setcookie( $name, $value, 0, dirname($_SERVER["SCRIPT_NAME"]), preg_replace('/:\d+$/', '', $host), !empty($conf['openads']['requireSSL']), true ); }Cheers,Laurent. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.