Jump to content

Cannot login: "Session cookie error, please log in again"


Pierre

Recommended Posts

Hi,

I am migrating Revive ads to a new server (EC2 AWS Linux) with PHP 7.4.

Either old or fully updated reviveAds 5.4.1. I always get the error:

"Session cookie error, please log in again".

Both after new installation or migrated. I can login on the old server.

Thanks

EC2 is under a ELB load balancer. Probably the cause

Link to comment
Share on other sites

I have the same issue on AWS with an EC2 instance running Amazon Linux release 2 (Karoo) and PHP 7.4.  PHP sessions are working outside of Revive but not holding between pages.  I can login directly at https://my-revive-site.com/www/admin/agency-index.php and it works but as soon as I attempt to go to another page, the session dies and I get a login prompt again.  I created a script to test sessions and it works.

 

<code>

<?php
session_start();
$has_session = session_status() == PHP_SESSION_ACTIVE;
if ($has_session) {
  echo 'Session working with ' . session_id() . '.';
} else {
  echo 'Session not working.';
}
</code>

Link to comment
Share on other sites

"so not a bug" was the reply on git. 

The reply, which does not help much solving:

I'm sorry, given the huge number of people running on EC2, this is definitaly not a Revive Adserver bug.

Possibily some misconfiguration on your side, but the issue tracker is not suitable for support questions.

Link to comment
Share on other sites

Question for the forum staff.  Is the best place to submit bugs at https://github.com/revive-adserver/revive-adserver/issues?  This forum has not been helpful with this issue.  I'm not sure you can say it's definitely an AWS specific bug.  I have proven PHP sessions work outside of Revive.  The problem appears to be isolated to the software.  It's highly possible a step was missed during the upgrade from OpenX to Revive but like Pierre and I have stated, multiple attempts show the issue is repeatable.

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.

Guest
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...