homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

Site Login pass through

5+ Year Member

Msg#: 3393950 posted 5:16 pm on Jul 13, 2007 (gmt 0)

Hi All,
I'm creating a website that contains some tools to be used by a community. One is a wiki, and the other is a groupware application. Could someone describe a way for there to be one login for the site, and have those logins pass through to the others?

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.




WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 3393950 posted 8:55 pm on Jul 14, 2007 (gmt 0)

All on the same site? Set a cookie. If they are on different domains or subdomains you will have to pass a variable via query string when moving from one to the other, as cookies can only be read on the specific domain they are set on.

- 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 }

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved