Integrating phpBB forum into ASP.NET wesite

Discussion in 'Microsoft Development' started by kompot, Jan 27, 2006.

  1. kompot

    kompot Guppy

    Integrating phpBB forum into ASP.NET website

    This question was posted by StPatrick some time ago. It's still unanswered.

    Let's say..
    I have an ASP.NET site, but at same time I want to integrate some PHP forum into it (phpbb for example). Of course I want them to "share" the same session, not technically, but visually for user. User should login only once, for example on ASP.NET login form, and then he/she will be logged on in PHP forum as well.
    Anyone have thoughts, suggestions or maybe done this before?
  2. antic

    antic Perch

    Re: Integrating phpBB forum into ASP.NET website

    You will of course need to use a field in the forum database to relate to your .NET app user database. Assuming you have done this, the first thing that pops to mind is to just use a common cookie:

    Tell your .NET app to set a cookie when someone logs in, the value of the cookie relating to their forum login name, having first found their forum user record in the forum db using the related field. You must add code to the php forum to detect the cookie and automatically log the person in if found.

    You can do the same the other way too, if they log into the forum first.

    There's more detail to it of course, but that's the basic idea. Just common-sense, but I don't know php so don't ask me to write anything! :) This assumes your .net app and your forum app are on the same domain, otherwise the cookie idea won't work.
  3. kompot

    kompot Guppy

    Re: Integrating phpBB forum into ASP.NET website

    Thanks, Antic. I appreciate your help very much :) I neiser know php but your idea is clear
  4. Yeormom

    Yeormom Guest

    Just having the username/id in a cookie poses a big security threat. You really need to analyse the sessions in phpbb so you can use all of the features of the serialized cookie, else, your forums can be compromised.
  5. andolasoft

    andolasoft Guppy

    ASP.NET provides a programming environment that allows developers familiar with Visual Basic and other Microsoft based development tools, client-server code to connect to the Internet.

Share This Page

JodoHost - 26,000 hosting end-users in 100 countries
Plesk Web Hosting
VPS Hosting
H-Sphere Web Hosting
Other Services