Single sign on
3 posts
• Page 1 of 1
Hi,
I am working on a web site where there will be a forum and web auction. The web auction will use dataface and the web auction project. I would like the users to be able to log in once for both applications (on the same server, but different directories). Are there some session variables I can set so that the user can be automatically logged into the web auction? Thanks, Joel
HI Joel, The $_SESSION['UserName'] variable is used to track the username of the logged in user for all Dataface applications. In order for this to work properly Web Auction still needs to have the user's info (e.g. email address) in the Web Auction users table.Ê You can do this by either writing an authentication handler for Web Auction to use the forum for authentication (See the CAS authentication module for an example authentication handler), or to create a function to import the user information from the forum if it doesn't already exist. For the SFU plantsale auction we used the University's CAS (Central Authentication Service) and LDAP to allow users to just use their University accounts, so this sort of thing is definitely possible. -Steve
3 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 34 guests |