Anybody can help me? Topic is solved

General project discussion. NOT for help questions.
webby57

Anybody can help me?

Post by webby57 »

I have installed 0.8.2 and I would like to have all pages protected.

on line 101 on my index.php, it has an option -
#if(password_protected($page) != -1 && !check_access(password_protected($page)))
#{
# $html = display_login_form();
#}


What should I do to get have an authentication on the whole site?

Cheers.
jptechnical
Forum Members
Forum Members
Posts: 131
Joined: Wed Jan 12, 2005 12:18 am

Anybody can help me?

Post by jptechnical »

Would a single username and password for the whole thing work?

You could specify this in the .htaccess file. Then the visitor would get a basic username/pass prompt and then they would be able to access everything.
Anonymous

authentication

Post by Anonymous »

No.

I would like to have several users to have access to the site.

Any suggestion?
Akrabat

Anybody can help me?

Post by Akrabat »

see "Protected Pages" on the wiki at: http://wiki.cmsmadesimple.org/pmwiki.ph ... tedModules
Anonymous

tks Rob

Post by Anonymous »

It was installed but still have some fix to do.

tks.
webby57

protected pages error

Post by webby57 »

Rob,

I'm getting this error when I want to include a user into a group or just a user in the ProtectedPages Interface...

Call to undefined function: fetchrow() in modules/ProtectedPages/processadmin.php

What should I do ?

Also when you logout from the page protected you are not entirely logged out... I think it still read some cache behind.... Is there anyway to clear the cache in order to really logout the user?

Cheers.
Akrabat

Anybody can help me?

Post by Akrabat »

I'm sorry, but I don't know the answers to your questions.

Silmarillion wrote ProtectedPages - hopefully he'll chime in, or you can catch him on IRC.
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm

Re: protected pages error

Post by Silmarillion »

Hello, sorry for not reflecting before, but I haven't had much time for CMS-development lately. The fetchrow-error you have described is fixed and I will update on the wiki page later tonight. Just fixing another bug. I know no way to force the users cache to be flushed, but if anyone does I'll be glad to include it in the logout-code!

Best regards
Morten/Silmarillion
webby57 wrote:Rob,

I'm getting this error when I want to include a user into a group or just a user in the ProtectedPages Interface...

Call to undefined function: fetchrow() in modules/ProtectedPages/processadmin.php

What should I do ?

Also when you logout from the page protected you are not entirely logged out... I think it still read some cache behind.... Is there anyway to clear the cache in order to really logout the user?

Cheers.
Anonymous

Tks

Post by Anonymous »

I'm looking around to see how we could clear the cache from a protected page.


Tks for fixing it...

I have another problem with the stats. It doesn't seem to work. I have the interface but when I click on the options, it won't show anything.

Do you have any idea if others have encountered the same problem...

tks again.

Excellent cms
webby57

tks for your help

Post by webby57 »

I've tried it and it didn't help....

I'll explain my situation:

Once you are logged in index.php (protected page) and you want to logout, you get the logout window again and if you press cancel you still have the page showing and if you click again on home page (index.php)
it let you go back to it and it does the samething over and over when you logout....

What I would like to have is once you are logged out you see a page saying that you are logged out totally and if you want to login again you get the login window....

I hope this help...
jptechnical
Forum Members
Forum Members
Posts: 131
Joined: Wed Jan 12, 2005 12:18 am

Anybody can help me?

Post by jptechnical »

so the client side is caching the page not cms, is this right? Is it still including the session in the url?

what happens if you close the browser and reopen? Does it still keep you logged in? or do you have to login at that point? What if you navigate away and then return, do you still have access?
webby57

Anybody can help me?

Post by webby57 »

To answer to your questions

When I get out of the browser, it works perfectly....
If I navigate away and return it still cache the page ...
The client side is caching and still includes the url....



In conclusion the only way it works is if you close your browser and reopen again...

Cheers.
jptechnical
Forum Members
Forum Members
Posts: 131
Joined: Wed Jan 12, 2005 12:18 am

Anybody can help me?

Post by jptechnical »

So (development team) how is the session handled on CMSMS? Is it session in the url or is it cookie based?

Try after getting to the logout screen (where you would be able to just go right back in) and typing a new url in the domain (even if it doesnt exist) just to get any session data out of the url if that is where it is, then type the address to yourdomain.com/index.php and see if it retained your session. If it doesnt let you back in it may be as simple as putting in a static url for a "You are now Logged Out" page and then a link back to the home page.



I guess I should probably let you know I am by no means a coder in any way shape or form, but I can see using this module in my own personal site in the near future. I have a vested interest in it's development so to speak.
webby57

Anybody can help me?

Post by webby57 »

Hey,

I don't know if I can solve it but I have found the bug....

When we logout of the protected site, you are prompt to a login window again, you have the option to login or to cancel. If we hit cancel that's where the session is not killed but if we it OK then it kills the session saying that I have no longer access to the page. I guess the action of the Cancel button has definitely something to do....

Do we have any suggestion here... In the mean I will look in to it.

Cheers.
jptechnical
Forum Members
Forum Members
Posts: 131
Joined: Wed Jan 12, 2005 12:18 am

Anybody can help me?

Post by jptechnical »

Righton! Good sleuthing!
Post Reply

Return to “General Discussion”