Date: 02/21/00
- Next message: Rahul Jain: "[PHPLIB] User Name and pass"
- Previous message: Aidan Skinner: "[PHPLIB] PHPLIB installation problem"
- In reply to: Jimmy Daresta: "[PHPLIB] Multiple sites, Multiple auth?"
- Next in thread: Jimmy Daresta: "[PHPLIB] Multiple sites, Multiple auth?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'm not completely sure this will do what you want, and it's based more on reading than doing -
You can have up to 31 perm classes ("user", "admin", etc.). Any user can be a member of any
combination of these classes. So you might be able to use the magazine and the 3 sub sites as
classes. This will handle everything except the date issues.
You could create an additional table of expirations, for example
create table expire (
userid = (same as user table?),
mag = DATE,
sub1 = DATE,
sub2 = DATE,
sub3 = DATE
);
or (i think) you could extend the user class and include the expiration(s) as part of the serialized
data. This might actually be easier., something like this:
class myuser extends User {
var expires = array ("mag" => "", "sub1" => "", "sub2" => "", "sub3" => "");
...
}
This is an area I'm still very confused about, so I'm not at all sure this is the correct way.
Gary B
Jimmy Daresta wrote:
> This message was sent from Geocrawler.com by "Jimmy Daresta" <jimmy <email protected>>
> Be sure to reply to that address.
>
> I have ran into a slight problem. I have successfully setup PHPLIB, I have it customized, and I
> have it authenticating and such. However, I am running into a problem with one particulare
> aspect.
>
> I basically have multiple web sites that need authentication. However, the authentication is
> slightly tricky. Basically we have a full online magazine with subscription services and 3 sub
> sites of datebase info that also have subscriptions services. Now, if you are a subscriber to the
> magazine, you get full access to the magazine and then full access to the 3 sub sites. You can
> have the option, however, to subscribe to just one of the sub sites, 2 of the sub sites or all 3
> without having a subscription to the magazine.
>
> The data is setup where in the subscription table there are 4 expiration fields. 1 for the
> magazine, and then 1 for each sub site. If you subscribe to the magazine then they are all the
> same date. If no magazine subscription, then each one of the sub areas have their own exp
> date. They can be all the same or each unique.
>
> So the possible scenarios that I would like to do are this:
>
> 1. If they login to the magazine, then they do not have to login again to the magazine nor the 3
> sub sites.
>
> 2. If they login to a sub site and have a magazine subscription they will not have to login for the
> other sub sites nor the magazine.
>
> 3. If they login to a sub site and they have access to one or more of the other sub-sites, but not
> the magazine that they will not have to login again for the sub sites that they have access to,
> but will be denied access for the magazine.
>
> The key aspect is that any access must be determined by the exp date set in the table. Now I
> have read the perms doc stuff. I am confused on how I can make use of it in light of the exp
> date data I must make use of.
>
> Anyway, I am going to keep working on this, but any insight on a way to acheive what I need
> would be much appreciated.
>
> Thanks in advanced.
>
> Geocrawler.com - The Knowledge Archive
> -
> PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
> To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
> the body, not the subject, of your message.
--
"Cyber is cyber, life is life."
Gary E Bickford mailto:garyb <email protected>
Consultant http://www.fxt.com/
FXT Corporation tel:541-383-2749
mail:PO BOX 1808, SISTERS OR 97759
ship:66265 JERICHO ROAD, BEND OR 97701
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Rahul Jain: "[PHPLIB] User Name and pass"
- Previous message: Aidan Skinner: "[PHPLIB] PHPLIB installation problem"
- In reply to: Jimmy Daresta: "[PHPLIB] Multiple sites, Multiple auth?"
- Next in thread: Jimmy Daresta: "[PHPLIB] Multiple sites, Multiple auth?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

