CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Cannot access restricted pages.

Print topic Send  topic

Author Message
saseow

Posts: 744
Posted: 08/25/2008, 11:22 AM

I am trying to setup site security and for some reason it does not work. I keep getting transferred to the re-direct page after a login that is OK with Administration rights.

I have set the Security and Security Groups in the Project settings, I have set security on the pages but cannot access the pages even with admin rights.

Is there some little trick I am missing with this stuff? It seems so basic that ir must work and yet.......?

Any help....Please!

Thanks,

Trevor
View profile  Send private message
wkempees


Posts: 1679
Posted: 08/25/2008, 5:26 PM

Pressed F9 Publish all files + ?
Checked the Project Setting Security Groups to be as you expect?
Same for pages?
Are you using a GroupTable in the Database and have that mixed up as to levels?
Login Page with redirect or Page adressed and then to Login and Back?

Show us the URL after login.

_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
saseow

Posts: 744
Posted: 08/25/2008, 5:45 PM

Hi wkempees,

Answer to your ?:

Yup, I am admin.
Yup, same for pages.
Nope, no mixup with the tables. I am using a user table and a group table.
Login page has no 'Access Denied Page' but has form has a 'Return Page' = search.ccp

Following all the instructions in the manual, I just cannot find what the hassle is!

Can well send an example if you need. Thanks so much for your interest!

Trevor
View profile  Send private message
saseow

Posts: 744
Posted: 08/25/2008, 5:47 PM

This is the URL after Login:
http://localhost/php%20webs/bookshop/default.php?ccsForm=Login%3AEdit

View profile  Send private message
wkempees


Posts: 1679
Posted: 08/25/2008, 6:45 PM

The URL after Login is wrong, ccsForm=Login indicates an error and not logged in.
AFAIK
You can set me up to download your example but it is 3:45 AM here, so no go tonight
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
saseow

Posts: 744
Posted: 08/26/2008, 3:29 AM

Hi Walter, I created a new test project and get the same result so I am doing something fundamentaly wrong.

You can download the project and the MySQL sql file.

http://www.saseow.co.za/test/test.zip

Thanks for this,

Trevor
View profile  Send private message
saseow

Posts: 744
Posted: 08/26/2008, 4:19 AM

Hi Walter,

My sessions are not configured properly on my system hence the error. Thanks so much for your help thus far.

Regards,

Trevor
View profile  Send private message
wkempees


Posts: 1679
Posted: 08/26/2008, 4:25 AM

Downloaded.
Reviewed, loaded SQL, looked at your test project.
2 remarks:
1- Project Settings->Publishing->Server URL should be ending in '/test' not '/test/Login.php'
2- You project setting reflect PhP5, Your connection Server Settings is MySQL set it to Improved MySQL if using MySql 5+
These two alterations and it works here.
Remarks as to your database design, user table has field password for password password is a reserved word, suggest you redesign it to user_pass or user_password, it will save you lots of work in future.
Time spent 15 minutes.

Have fun
Seen the session remark.

Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
saseow

Posts: 744
Posted: 08/26/2008, 4:34 AM

Thanks Walter. I will review your suggestions.

Cheers for now,

Trevor
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.