This topic is locked

use one login page for multiple applications

11/4/2009 00:15:04
PHPRunner General questions
V
vin1656 author

We have developed some applications such as order, customer support, part stock control, service report.

Is it possible to integrate those applications with only one login page(means same user table)?

The preferred way is user can choose which application to enter after login instead of login from each

login pages of those applications.
It would be appreciated if there is an alternative to do it.
Vincent

J
Jane 11/5/2009

Vincent,
here are some tips:

V
vff 11/20/2009

Hi Jane,
looks like I found the right post for my problem, but your answer is quite short. I guess the basic approach works. My questions are:
Thanks in advance,

Peter

Sergey Kornilov admin 11/20/2009

Peter,
all you need to do is to populate session variables. You don't need to pass anything or use dynamic permissions.
See security related session variables at

http://www.xlinesoft.com/phprunner/docs/phprunner_session_variables.htm
The absolute minimim is:

$_SESSION["UserID"]="someuser";

$_SESSION["AccessLevel"]=ACCESS_LEVEL_USER;
The rest depends on what kind of security settings you have in your projects. See examples in manual.

M
maali 11/23/2009

Here are a shurtcut:
each time you create a application, use the same user table and afterward a login.php is created.

take out the following from that login.php:
$_SESSION["UserID"]="";

$_SESSION["AccessLevel"]=ACCESS_LEVEL_USER;
and put it in your main login.php and save.

that is it.
I have done it and it works fine.
/maali