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

 [SOLVED] Authentication Builder Problem, please help, thanks.

Print topic Send  topic

Author Message
joejac

Posts: 242
Posted: 03/12/2009, 9:47 AM

Hello everybody.

I create a Logout Link pointing to my Login page with the Authentication Builder, when I click on the Logout link it redirects to the Login page, I enter a false user and it fails as expected, but if I click on any menu item it still remember me and allows me to enter in any page.

This is not correct, if I logout I expect my session has been closed but it is not closed, I am still login. Is this a bug of CCS4 or am I doing something wrong?. It looks very easy, but it is not working for me.

Thanks for any help
Best regards
joejac
View profile  Send private message
hector

Posts: 16
Posted: 03/12/2009, 10:02 AM

Quote joejac:
Hello everybody.

I create a Logout Link pointing to my Login page with the Authentication Builder, when I click on the Logout link it redirects to the Login page, I enter a false user and it fails as expected, but if I click on any menu item it still remember me and allows me to enter in any page.

This is not correct, if I logout I expect my session has been closed but it is not closed, I am still login. Is this a bug of CCS4 or am I doing something wrong?. It looks very easy, but it is not working for me.

Thanks for any help
Best regards
joejac

Hello,

If you want to logout, the function CCLogoutUser() does the work.

Have you set "Restricted" page property to "Yes"? If you don't restrict the page login/logout is useless.

Regards.

Hector.


View profile  Send private message
joejac

Posts: 242
Posted: 03/12/2009, 11:06 AM

Thanks a lot (Gracias!) Héctor.

I searched for CCLogoutUser() and I found this
http://forums.yessoftware.com/posts.php?post_id=89661

In summary, for future reference:
1.- Create a Logout link with the Authentication Builder,
2.- On the Project Explorer, click on the page that the Logout link points at
3.- On Properties-Events-Before Show - (right click) Add Action - Logout
Enter the Parameter Name (Logout, in my case) the Return Page (your page) and Page Redirect: True

And it should work.
Best regards
joejac
View profile  Send private message
damian

Posts: 838
Posted: 03/12/2009, 3:14 PM

Quote hector:
[Have you set "Restricted" page property to "Yes"? If you don't restrict the page login/logout is useless.

this is also very important. CCS will do this for you on your initial pages but may not on new pages....

_________________
if you found this post useful take the time to help someone else.... :)
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.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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