This topic is locked
[SOLVED]

 One Login for multiple project files.

12/11/2005 07:23:47
PHPRunner General questions
S
scy author

I am using one database with many PHPrunner project files to one larger application. Is it possible to password secure all projects so it is necessary only to log in once.

Sergey Kornilov admin 12/12/2005

Hi,
you need to login only once to all your projects if they use the same username/passwords table and if they reside in separate directories on the same web site.
I.e. your two projects are placed in:

http://mysite.com/project1

and

http://mysite.com/project2
So you can login at

http://mysite.com/project1/login.php

and then open

http://mysite.com/project2/menu.php

S
sloftus 12/12/2005

I'm just thinking about linking two projects and was about to ask the same question. How though, would I create a hyperlink from one project to the other. Ideally I'd like to have one common menu that linked to several projects. Is this possible?

S
scy author 12/12/2005

Hi,

you need to login only once to all your projects if they use the same username/passwords table and if they reside in separate directories on the same web site.
I.e. your two projects are placed in:

http://mysite.com/project1

and

http://mysite.com/project2
So you can login at

http://mysite.com/project1/login.php

and then open

http://mysite.com/project2/menu.php


I have made a login project just for loging in and put links to the other projects in the header. When I am loged in say as demo follow the link to another project and then try to log out I find it is not possible as the log out link goes to tblname_list.php

Sergey Kornilov admin 12/13/2005

Hi,
you should create login page in every project, not only one.
Log out link goes to Login page.

If it's not so you should check your modifications to find out why they break Log out mechanism.

S
scy author 12/13/2005

Hi,

you should create login page in every project, not only one.
Log out link goes to Login page.

If it's not so you should check your modifications to find out why they break Log out mechanism.


Hi
When I do that I have to log in again each time I press the link in the header to another project.

Is it possible to set to go from one project to the next having loged in once?

Sergey Kornilov admin 12/14/2005

It seems that you have unusual session.cookie_path PHP configuration setting.

Please change it to default value in php.ini file. The default value is "/".
If you can not change your php.ini file or if you use shared hosting please try to modify generated PHP files.

You should find all occurencies of this line in every PHP file:

session_start();



and insert the following just before:

ini_set("session.cookie_path","/");

S
scy author 12/16/2005

I have just checked the setting in phpinfo.php and session.cookie_path is set to the default value.

Sergey Kornilov admin 12/16/2005

Pease ensure that the link you use to switch between projects points to a page, not directory.

I.e. you should use:

http://mysite.com/project2/menu.php'>mysite.com/project2/menu.php

or

http://mysite.com/project2/table_list.php'>mysite.com/project2/table_list.php

Not

http://mysite.com/project2/


If this doesn't help you can give me an access to your site and I'll show your what's wrong with it.

You can send the connection info to support@xlinesoft.com

S
scy author 12/16/2005

Problem Solved.
Thanks.