This topic is locked
[SOLVED]

 Auto login from one application to calendar application

2/22/2017 11:30:27 AM
PHPRunner General questions
S
stiven author

Hello,
Does anyone know if there is an easy way to auto login from one application to another? let's say the user logs in in main application, I added another application with just the calendar template I want to have a link from the main application point to the calendar app. But i would like to use the same sessions from main application, so that the user won't have to log in again in the calendar app.
Thank you

admin 2/23/2017

There is a line in include/dbcommon.php file that looks like this:

@session_name(str_replace(" ", "", "s1446746489"));


If you make that s1446746489 value identical in both projects sessions will be shared between two projects and users will be logged in automatically.

S
stiven author 2/23/2017



There is a line in include/dbcommon.php file that looks like this:

@session_name(str_replace(" ", "", "s1446746489"));


If you make that s1446746489 value identical in both projects sessions will be shared between two projects and users will be logged in automatically.


Thank you very much! that works...