Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Autolog from session
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

xMANIGHTx
Junior Member

Italy
191 Posts

Posted - 13 July 2001 :  16:07:35  Show Profile  Visit xMANIGHTx's Homepage
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

Distractly yours... manight@audiopro.it

xMANIGHTx
Junior Member

Italy
191 Posts

Posted - 13 July 2001 :  16:25:38  Show Profile  Visit xMANIGHTx's Homepage
Ok here's something that can help...

I edited the inc_functions.asp in the COOKIES FUNCTION ZONE

and put my session variables that way:

Response.Cookies(strCookieURL & "User")("Name") = session("nomeaccount")
Response.Cookies(strCookieURL & "User")("Pword") = session("passaccount")
Response.Cookies(strCookieURL & "User")("Cookies") = Request.Form("Cookies")

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.

Thanx again friends


Distractly yours... manight@audiopro.it
Go to Top of Page

xMANIGHTx
Junior Member

Italy
191 Posts

Posted - 13 July 2001 :  16:29:18  Show Profile  Visit xMANIGHTx's Homepage
Ok it was easy sorry for bugging u.
If anyone it's interested in doing sumthing similar...

Just put those:

Response.Cookies(strCookieURL & "User")("Name") = session("nomeaccount")
Response.Cookies(strCookieURL & "User")("Pword") = session("passaccount")

On the beginning of inc_top.asp


Distractly yours... manight@audiopro.it
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07