This topic is locked

Auto login from one phprunnre app to another

4/18/2017 4:45:15 PM
PHPRunner General questions
abidcastaneda author

Hi <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=24646&image=1&table=forumtopics' class='bbc_emoticon' alt='B)' /> ,
I have searched all throughout the forums and have gotten some pretty good ideas as to how this is accomplished on the application that's being logged on to, but, I have not seen one post stating how to grab the user info from the first app to pass it on to the second one.
Here's my scenario:
I have PHPRunner Enterprise 9.0 build 27012 x64

I made an application with only the welcome page in it, in bootstrap theme.

I am adding my own links to it through the menu builder that take you, each, to another PHPRunner web app.

When the user goes to the url, they first find the login page to the menu app, and as they login, they will only be able to see the menu, when they click on one of the menu items, the link will send them to another PHPRunner web app where they have to also login to start doing their work.
My point is to have them only sign into the first app (menu app) and as they click on the links, to automatically login on the web app they chose to open.
I have seen several post where you add some code to the after initialized event on the login page and you pass on the username and password through the url, if it's a hard coded security that you are using, but, I have not seen any post that states how to grab the username and the password from the first PHPRunner web app, pass it on to the second and automatically login in the second one.
Furthermore, when I create a link with the menu builder, I use the following as a link: http://some.com/at/login.php?username".$_SESSION['UserID']."&password=".$_PASSWORD['password';] and it spits out an error stating it's expecting "'".
Has anyone done this? Or have any clue as to how to do it. I really appreciate your help. Thank you. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=24646&image=2&table=forumtopics' class='bbc_emoticon' alt='B)' />

P
Penultimatum 5/25/2017

Did you manage to do this?
Is this the answer: 24495-auto-login-from-one-application-to-calendar-application
About to try this myself.
Jim.

abidcastaneda author 6/1/2017



Did you manage to do this?
Is this the answer: 24495-auto-login-from-one-application-to-calendar-application
About to try this myself.
Jim.


Hi, I saw this yesterday and tried it and it worked! But today I come in, build both applications changed the dbcomon.php file again and it didn't work. Furthermore, I also tried some other solutions I found like deleting these lines:



// isolate sessions for projects running on the same site

@session_name(str_replace(" ", "", "s##@BUILDER.m_lastDbSyncTime##"));


And that didn't work either, I don't know why it worked the first time and now it doesn't ... I'm baffled ... <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=82316&image=1&table=forumreplies' class='bbc_emoticon' alt=':blink:' />
Sergey, can you shine a light on this subject?