What does SC_RESET_APL_STATUS do?

According to documentation:
sc_reset_apl_status () - Deletes all the application security status variables.

I have security on for all applications. Login and granting access to the applications works fine, but…

I have a custom logout button that calls sc_reset_apl_status(). After pressing this button and executing sc_reset_apl_status, I can still access all my applications!

How can I logout and revoke access to granted applications?

Re: What does SC_RESET_APL_STATUS do?

I dont know if the macro SC_RESET_APL_STATUS is able on buttons.

Try to use it on the event oninit of the login page.

Ex: when accesgin the login, disable the status using SC_RESET_APL_STATUS

And redirect the logout button to the login page. So se security status will be reseted.

Re: What does SC_RESET_APL_STATUS do?

I already tried oninit in login application, does not work.

Any other syggestions?

Re: What does SC_RESET_APL_STATUS do?

Any update on this? I am building a secure database and need to make sure logout is complete. I tried sc_reset_apl_status() in my OnScriptInit event. But when i go to my other applications, I still can get in and not get prompted to login. I am new to SC and need to complete my evaluation and see if this product is good for our secured projects. Thanks.

sc_reset_apl_status();
$dir = opendir($this->Ini->path_aplicacao . “…”);
while ($file = readdir($dir))
{
if ($file != ‘.’ && $file != ‘…’ && $file != ‘_lib’)
{
sc_apl_status($file, ‘off’);
}
}
closedir($dir);

Re: What does SC_RESET_APL_STATUS do?

It works for me now.

Problem was caching in the browser. After deleting cache it works fine.