This topic is locked
[SOLVED]

 Guest Login Issue

2/6/2013 05:06:16
PHPRunner General questions
S
Sitaraman author

Hi all,
I have a set of four databases generated out of Phprunner and have a common tab on the top to access each one of them. One of the databases has a guest login with read-only acess.Now my problem is when I am logged in into one of these databases as admin and switch to the one which has guest access, I see that I am logged in as admin in that also. (I have bypassed the login screen for the database with guest access and redirect them directly to the menu page). Hope I am clear. Kindly help in resolving this issue.
Thanks and regards

S Sitaraman

C
cgphp 2/6/2013

The session_name() function is the solution. Make a copy of the dbcommon.php file (located in the oputput/include folder) to the source folder (the source folder is located where you find the phpr project file).
The source folder will contain the following structure:



+source

|__+include

|__dbcommon.php


Edit the dbcommon.php (source/include/dbcommon.php) file and before the session_start() statement, add the following line:

session_name('app1');


Replace app1 with the name you like.
Repeat the above steps for any app (remeber to choose a different name for any app, for example: app1, app2, app3 and app4).

S
Sitaraman author 2/7/2013

Dear Cristian,
That was a perfect solution!! Thanks to you and the PHPRunner team.
Regards

S Sitaraman