I have tu put my forum on an intranet where we already have ID and PASS and users details on a SQL server DB. We use session variabiles to keep some infos about the user and we already have access control on each page. I need to modify the inc_top.asp file so that no LOGIN / LOGOUT button is ever displayed. I need to automatically put the session vars in the cookies need for the login and remove every kind of control on the login. That way when a user from our intranet goes on the forum page (even if it's the first time) he gets automatically logged in. (I'll do the check on the user for the whole intranet including the forum pages). In other words I need to write to USERDID and PASS cookies each time the inc_top.asp is loaded, to let the DB find out the right forum user and never display log-out log-in buttons. Can anyone help? I tryed to do something but I don't have the overall view...(functions.. and the like)... Thanx in advance for your help
The result is this: whenever the user logs in it find the corrisponding user in the DB to session variables. I mean: I'm user n.1 and my intranet gived me my user n.1 session variables. On the forum DB I have user n.1 and user n.2 Even if I log in the forum as user n.2 it identifies me as user n.1 'cause my session variables (from the intranet) are those of user n.1
The only thing I have to overcome is the request to log in the first time or whenever cookies expires (so I need to rewrite them each time) and to rip off the REGISTER and LOG IN / OUT buttons.