Forum Moderators: phranque
The goal is to have one login for both tools (wiki & groupware). I know that I'll need to create matching usernames & passwords for both apps.
Let me know if this has been explained elsewhere.
Thanks,
Chris
- encrypt user id
- encrypt password
- set a cookie for each. Use a SESSION cookie that expires when the browser is closed - low maintenance
Your login sub will look something like
if (login_fields) { use login field values to set u and p }
else {
read cookie
decrypt values
use decrypted values to set u and p
}
if (no u and p) { return to login }
look up matching u and p in DB
if (found) { go to requested page }
else { return to login }