
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
|
 |
 |
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.
|
 |
 |
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
|
 |
 |
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.... :)
|
 |
 |
|

|
|
|
|