|
|
Joined: Jul 2002
Posts: 7
Lurker
|
Lurker
Joined: Jul 2002
Posts: 7 |
I have a jsp site for my users. I have your demo and want to get your full product. However, I want to be able to have my users login to the site only once, so they don't have to login to the site and then the discussion group. I notice you use cookies for your session control. Is there anyway you can help me to find out how I would set those cookies in my site, remembering I use JSP not PHP? Thanking you in advance, Tyrone
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I have never used jsp myself. Has anyone else done something simular with authentication? Please let us know.
|
|
|
|
Joined: Jul 2002
Posts: 4
Lurker
|
Lurker
Joined: Jul 2002
Posts: 4 |
i'm interested in this login integration as well, only with php. ideally this is how it would work:
-user hits site, has option to login or register. -all normal pages are protected (using cookies i would assume) -also gives access to threads with this login
i could probably write this when i get some time, but my main question (which i also posted elsewhere) is how to get a mroe detailed registration form. not even that detailed, basically i want hte current username/email field as well as 1 or 2 other fields where i can specify other info.
i run a site that is members only and new members are invite only, and i want to use these fields to verify they are who they say for membership reasons.
|
|
|
|
Joined: Aug 2002
Posts: 2
Lurker
|
Lurker
Joined: Aug 2002
Posts: 2 |
It's pretty easy to do, you just have to set a few cookies like this (in php): $autologin = md5("$ubb_db_username$ubb_db_password"); // note yes $ubb_db_password is already md5-ed in the db SetCookie('w3t_key', $autologin, time() + 86400, "/"); // autologin key of MD5(UsernamePassword)
$w3t_myid = 10; # replace this with the w3t_myid value if the ubb user SetCookie('w3t_myid', $w3t_myid, time() + 86400, "/");
$newsessionid = md5(rand(0,32767)); SetCookie('w3t_mysess', $newsessionid, time() + 86400, "/"); $query = " UPDATE w3t_Users SET U_SessionId = '$newsessionid' WHERE U_Number = $w3t_myid "; @mysql_select_db("ubb"); mysql_query($query);
Do the above when you handle the login for your site and you will login automatically to UBBt. The only difficult point you may have is correlating the two accounts in the two databases - I solved that by removing UBBt's new user and password changing code, and I create the account from the main login stuff.
Paul.
|
|
|
|
Joined: May 2002
Posts: 4
Lurker
|
Lurker
Joined: May 2002
Posts: 4 |
Our developer has created an integrated login for our private corporate site which uses a combo of the following: UBBThreads 6.0, Microsoft SQL Server 2000, and Microsoft Sharepoint Portal Server 2001. Sharepoint uses Windows 2000 Active Directory. In this system, Admin. has web accessible tables (backend SQL Server 2000) to manage user login information. Sorry, I can't give more programming details or technospeak.
Last edited by DTS; 08/08/2002 1:34 AM.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 5,833
Joined: January 2000
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|