Is there any php script software to manage users and sessions across all my site scripts?
by saamiblog
Question by Drigit Inrok: Is there any php script software to manage users and sessions across all my site scripts?
I have 10 site scripts which are all on different base of users… They have their own sessions users database tables and all… Is there any software(user management system) which can link all my scripts to one single sign-on standard?
Best answer:
Answer by Matt
I do not think there is a good cookie-cutter php solution
for what is required here.
But a manual solution may be easier in this case.
If your users are on a database for example you can merge
all your user tables into one new “super-table” that contains
all users. You can use software like phpMyAdmin to help
you in this task.
Then you should do the same for any associated tables
e.g. holding sessions etc. If sessions are in the filesystem
just make sure they are using the same temporary directory.
Once this is done you can change configurations in your scripts
to still use their own databases for everything else but use
the new database/table for the users. Note that if you have used
a different database you also may have to break into two any
queries that use the user or session tables and another table
on the same query.
If you are not confident about the above process then I would
suggest to not try it at all because you may break functionality
of your original scripts.
Know better? Leave your own answer in the comments!