• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue Autologin problem via API

deniz

New Pleskian
Server operating system version
CloudLinux 7.9 (Boris Yegorov)
Plesk version and microupdate number
18.0.43
We are trying to do an autologin from our panel to Plesk but we have a strange problem

API version 1.6.9.1

We've successfully created a token via API following these info

and then built this url
https://<hostname>:8443/enterprise/rsession_init.php?PHPSESSID=<token>&PHPSESSID=<token>

In psa.sessions database we can find the record

sess_id type login ip ip_dual_stack login_time modifed lifetime
db682b7f037495c735e0ea1291b75996 4 pippo our ip 1652362749 1652362750 1800

but when we click the generated link login is not validated and we are redirected to the Plesk login page with this url
https://<hostname>:8443/login_up.php?success_redirect_url=%2Findex.php

and the record in psa.sessions is deleted

We use the same scripts for other servers with Plesk without any problem

So, what is the problem? how can we debug and resolve the issue?

Thanks
 
Back
Top