IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

A Twist On Basic Authentification

, html help


GameSmith
no avatar
Newbie
*
Group: [HOSTED]
Posts: 4
Joined: 2-January 08
Member No.: 55,613



Post #1 post May 24 2008, 12:26 AM
Alright, i am working on a website where a number of different users from different companies will be looking hooking into one website.

What i want is to know how i can differentiate between the users based on the information passed by the webserver.

I've been told to that information will be passed along html_user(and if i have a distinct user then i can just query the database with that info and get what i want)

But how does this work? I am sorry i know this is cryptic i'm kind of searching to see if this strikes a bell with anyone.




So to sum, many users are logging in with basic authentification, then being redirected to my page. From there i need to be able to differentiate between the users based on whatever is inherently passed.

Help! As you can see i don't know this one too well... lol
Go to the top of the page
+Quote Post
jlhaslip
no avatar
Insert Custom Title Here
*******************
Group: [MODERATOR]
Posts: 4,942
Joined: 24-July 05
From: Linux, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol
myCENT:62.00



Post #2 post May 24 2008, 02:44 AM
I don't understand completely what you want to do, maybe, but if I were you, i would consider that having each person register and then Log-in to the main site would be enough... IF... each person who registered could be identified by the Company they are a part of in their user Profile.
In order to complete this answer, please post the Database Table schema you are using so we can assist you further.

thanks.
Go to the top of the page
+Quote Post
minimcmonkey
no avatar
Super Member
*********
Group: [HOSTED]
Posts: 407
Joined: 19-June 08
From: United Kingdom - Cornwall!!!!!
Member No.: 63,876
myCENT:80.60



Post #3 post Nov 1 2008, 07:19 PM
if you mean they are being sent to your site, from a referrer, the easiest way to sort the problem out, would be to have a user cookie sent to their browser before the referral, then checked by your site, and then the code could query the database accordingly. if the site differentiates users in the URL like "http://www.whateverdomainitdoesntreallymatter.com/users/data/index.php?user=usernamea"
you could use PHP to detect the referrer, and break down the URL, and query the database accordingly.
Go to the top of the page
+Quote Post
anwiii
no avatar
Trap Grand Marshal Member
***********
Group: [HOSTED]
Posts: 1,049
Joined: 5-March 06
From: Warsaw, MO
Member No.: 19,564
myCENT:92.80



Post #4 post Nov 1 2008, 07:48 PM
QUOTE(GameSmith @ May 23 2008, 07:26 PM) [snapback]391230[/snapback]
So to sum, many users are logging in with basic authentification, then being redirected to my page. From there i need to be able to differentiate between the users based on whatever is inherently passed.


are you saying people are logging on to one site, and when they get redirected to yours, you want to differenciate the users/members? what's your website and where are the users coming from? from my understanding you want to differentiate the users without them having to log in to your site page? i think you need to be more specific here....

This post has been edited by anwiii: Nov 1 2008, 07:51 PM
Go to the top of the page
+Quote Post
dragonfang00
no avatar
Member [Level 2]
*****
Group: Members
Posts: 75
Joined: 3-November 08
From: Philippines
Member No.: 71,312
myCENT:3.94



Post #5 post Nov 6 2008, 10:00 AM
you will need to create a script with $_GET placing it in the logging page.. after this method you should put another $_GET in the website to where it is redirected so you can differentiate it..

example:
CODE
<?php
$authent_type = $_GET("auth_type");
?>


and you'll just add the auth_type with it's username and/or userID in the link like
CODE
http://domain.com/redirect.php?uname=username&uID=1234567&auth_type=<?php echo $authent_type; ?>


OR

you can also do it without using $_POST variable but instead creating a cookie.. setcookie() function will do the work replacing the $_POST variable and it is much easier..

example:

CODE
setcookie("user", $username, time()+3600);


where "user" is the name of the cookie, $username is it's value, and the timeline on how long it will be in the user's machine...
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   0 Jarlaxe 1,542 23rd June 2007 - 11:13 AM
Last post by: Jarlaxe
No New Posts   0 Zenchi 3,531 28th September 2004 - 03:35 AM
Last post by: Zenchi
No New Posts   3 X3r0X 5,334 28th September 2004 - 02:30 PM
Last post by: X3r0X
No new   29 alapidus 6,907 6th February 2005 - 04:36 PM
Last post by: mahesh2k
No New Posts   5 Goosestaf 3,386 25th November 2004 - 07:05 AM
Last post by: filipc
No New Posts   1 kvarnerexpress 4,409 14th December 2004 - 12:18 AM
Last post by: sandymc
No New Posts   8 zachtk8702 3,621 5th June 2009 - 05:13 AM
Last post by: Gravity17
No New Posts   2 zachtk8702 4,094 28th October 2006 - 04:42 PM
Last post by: ghostrider
No New Posts   9 zachtk8702 10,581 21st May 2009 - 06:12 PM
Last post by: jason8100
No New Posts   0 zachtk8702 2,921 10th February 2005 - 03:26 AM
Last post by: zachtk8702
No New Posts   3 zachtk8702 8,427 8th November 2008 - 04:19 PM
Last post by: iGuest-dudey
No New Posts   2 jamers 1,060 17th July 2007 - 05:22 PM
Last post by: jamers
No new   17 burgen 7,075 21st March 2005 - 08:03 AM
Last post by: canute24
No New Posts   0 rejected 3,189 3rd March 2005 - 04:00 AM
Last post by: rejected
No New Posts   1 ppj 2,775 6th March 2005 - 08:52 PM
Last post by: Raptrex


 



RSS Open Discussion Time is now: 24th November 2009 - 09:15 PM

Web Hosting Powered by ComputingHost.com.