MO: [Phplib-users] auth->check_feature and different expires
Brought to you by:
nhruby,
richardarcher
From: Giancarlo <gia...@na...> - 2002-10-08 12:39:41
|
Il 12:16, marted=EC 8 ottobre 2002, Giancarlo ha scritto: Finally I got to the conclusion that if lifetime has to be a prerogative = of=20 the user, not of the page's requested auth. Se o if we would like to have different lifetime for diferent users (lomg= for=20 common users, short for admins) we should redesign that to provide someth= ing=20 in auth check_feature() or whatever that overwrites the lifetime taken f= rom=20 the page Boh! This is for the future. Ciao for now Gian > I was now trying the snapshot with the aim of providing a different exp= ire > for eg user kris (admin), than anoter user (not admin). > > So I defined the Example_Auth (eg the one used in admin_only showoff) w= ith > a lifetime=3D1, and a example_default_auth (the one used in the pages = for > 'nobodies' too) with a lifetime of 3 minutes. > > But when I am visiting, as admin, a page that is for default_auth, my > lifetime gets extended to that of the defauth class, because it's in th= e > persistent $auth->auth array. While I would be able to keep my 'admin' > one. So maybe the check feature should also check, if different auth > feature, also recalclate the $auth->auth[exp] inherited. > > > Gian > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users |