Previous Thread
Next Thread
Print Thread
Rate Thread
#220854 07/08/2002 7:10 AM
Joined: Jul 2002
Posts: 7
Lurker
Lurker
Offline
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

Sponsored Links
Renaud #220855 07/08/2002 8:06 AM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I have never used jsp myself.

Has anyone else done something simular with authentication? Please let us know.

Renaud #220856 07/08/2002 9:21 PM
Joined: Jul 2002
Posts: 4
Lurker
Lurker
Offline
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.

hymie #220857 08/06/2002 8:36 AM
Joined: Aug 2002
Posts: 2
Lurker
Lurker
Offline
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
DTS Offline
Lurker
Lurker
Offline
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.
Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)