Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create autologin link? #60

Open
heidarymr opened this issue Dec 14, 2018 · 7 comments
Open

How to create autologin link? #60

heidarymr opened this issue Dec 14, 2018 · 7 comments

Comments

@heidarymr
Copy link

Hi
How to create autologin link?

@RamonSmit
Copy link

Some one in a fork has created the feature:
https://github.com/erikk1986/php-plesk/blob/master/examples/Session/create_session.php

@heidarymr
Copy link
Author

i use this

Some one in a fork has created the feature:
https://github.com/erikk1986/php-plesk/blob/master/examples/Session/create_session.php

i use this script and below code:
header("Location: https://".$config["host"].":8443/enterprise/rsession_init.php?PHPSESSID=" . $request->id);
when i run this script the browser go to :
https://x.x.x.x:8443/enterprise/rsession_init.php?PHPSESSID=cdddf482eda3284e6594096b1fdf35d5
and then redirect to plesk login page!

@RamonSmit
Copy link

Seems legit to me 😄

@formulaclick
Copy link

Same issue here. API seems to work but generating ID if I paste full URL in browser, it redirects to login page. How can we create a working autologin link?

@formulaclick
Copy link

OK, I was doing wrong. The IP should be the user ip, not server IP.
:-)

@bedrijfsportaal
Copy link

i use this

Some one in a fork has created the feature:
https://github.com/erikk1986/php-plesk/blob/master/examples/Session/create_session.php

i use this script and below code:
header("Location: https://".$config["host"].":8443/enterprise/rsession_init.php?PHPSESSID=" . $request->id);
when i run this script the browser go to :
https://x.x.x.x:8443/enterprise/rsession_init.php?PHPSESSID=cdddf482eda3284e6594096b1fdf35d5
and then redirect to plesk login page!

The problem with that link is that Windows servers have a different parameter, PHPSESSID is specific for Linux servers.

@RamonSmit
Copy link

RamonSmit commented Jun 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants