php forum
php mysql forum
php mysql smarty
 
Topic Options
#220854 - 07/08/02 07:10 AM Login Integration
crazymullethead Offline
Lurker

Registered: 07/03/02
Posts: 7
I have a jsp site for my users. I have your demo and want to get your full product. However, <br />I want to be able to have my users login to the site only once, so they don't have to login to <br />the site and then the discussion group. I notice you use cookies for your session control. Is <br />there anyway you can help me to find out how I would set those cookies in my site, <br />remembering I use JSP not PHP? <br />Thanking you in advance, <br />Tyrone

Top
#220855 - 07/08/02 08:06 AM Re: Login Integration [Re: Renaud]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I have never used jsp myself. <img src="/forum/images/icons/crazy.gif" alt="" /><br /><br />Has anyone else done something simular with authentication? Please let us know. <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#220856 - 07/08/02 09:21 PM Re: Login Integration [Re: Renaud]
dr2423 Offline
Lurker

Registered: 07/08/02
Posts: 4
i'm interested in this login integration as well, only with php. ideally this is how it would work:<br /><br />-user hits site, has option to login or register. <br />-all normal pages are protected (using cookies i would assume)<br />-also gives access to threads with this login<br /><br />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.<br /><br />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.<br />

Top
#220857 - 08/06/02 08:36 AM Re: Login Integration [Re: hymie]
qube Offline
Lurker

Registered: 08/06/02
Posts: 3
It's pretty easy to do, you just have to set a few cookies like this (in php):<br />$autologin = md5("$ubb_db_username$ubb_db_password");<br />// note yes $ubb_db_password is already md5-ed in the db<br />SetCookie('w3t_key', $autologin, time() + 86400, "/"); // autologin key of MD5(UsernamePassword)<br /><br />$w3t_myid = 10; # replace this with the w3t_myid value if the ubb user<br />SetCookie('w3t_myid', $w3t_myid, time() + 86400, "/");<br /><br />$newsessionid = md5(rand(0,32767));<br />SetCookie('w3t_mysess', $newsessionid, time() + 86400, "/");<br />$query = "<br /> UPDATE w3t_Users<br /> SET U_SessionId = '$newsessionid'<br /> WHERE U_Number = $w3t_myid<br /> ";<br />@mysql_select_db("ubb");<br />mysql_query($query);<br /><br />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.<br /><br />Paul.<br />

Top
#220858 - 08/08/02 01:29 AM Re: Login Integration [Re: sjsaunders]
DTS Offline
Lurker

Registered: 05/09/02
Posts: 5
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. <br /> <br />In this system, Admin. has web accessible tables (backend SQL Server 2000) to manage user login information. <br /> <br />Sorry, I can't give more programming details or technospeak.


Edited by DTS (08/08/02 01:34 AM)

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks