From: Boris Z. <bo...@2b...> - 2002-08-30 23:49:21
|
Hi, Am Freitag, 30. August 2002 22:38 schrieb a4a...@te...: > This is yet another question related to the required_login property of a > page. At one point Anton Berezin had a very interesting suggestion (refer > to his 'Registered users-only site with PageKit' posting). Certainly, I > think something like this is a natural extension of the framework. As a > further suggestion, this change could be accomodated by simply altering > config syntax to allow setting global page properties by including > respective attributes in the root <PAGES> tag. Like so: > > <PAGES require_login="recent"> > <PAGE id="public_page" require_login="no"/> > </PAGES> > > This configuration basically tells that every page on the site is to be > protected except the public_page. this can already bedone, with the sections tag. <SECTIONS> <SECTION id='/' require_login="recent"/> </SECTIONS> <PAGES> <PAGE id="public_page" require_login="no"/> </PAGES> does what you want. > > Now, onto another somewhat related question... I've set up my simple web > site based on the sample PageKit code. I only made a few changes such as > use MySQL to store sessions and added a bunch of my own code to do new user > signup and other related work. The trouble that I'm getting into now is > with a 'protected' page. Inside my configuration I set the page's > require_login property to 'recent'. At first this seemed to have worked > fine. Whenever I hit the page it requested me to login, and once I was > logged in, I could access the page. However, if I logged in by going to my > main login form directly, hitting the protected page afterwards I'd still > be asked to login. This is somewhat puzzling to me. I've been trying to > debug my modules but couldn't dig right to the root of the problem just > yet. i think you are on the verify_login page please retry with require_login='yes' instead of require_login='recent'. Then try to adjust your setting of recent_login_timeout to a propper value. The last thing to watch for is the clock setting of your server. > > Any suggestions/help would be highly appreciated! :) > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Pagekit-users mailing list > Pag...@li... > https://lists.sourceforge.net/lists/listinfo/pagekit-users -- Boris |