How to Logout from Menu-->Security

Hi,
I have created Security module. When I access to project page I logged in, then home page with menu appears and all applications works fine.
My problem how logout: I don’t see “logout” in Security submenu…

Does anyone know how to add the function to logout?

Thanks.
Carlo Alberto.

Re: How to Logout from Menu–>Security

Hi,

create new menu item “Logout” with target = “Exit”.

Re: How to Logout from Menu–>Security

I think the “target=exit” solution does not actually log you out of the SC application, it only exits the browser window/tab. You can still access SC applications without logon to SC.

To logout you have to use:
sc_reset_apl_status();

(combined with som exit code if you like)

Re: How to Logout from Menu–>Security

You can write the procedure for logout?
Thanks a lot

Re: How to Logout from Menu–>Security

sc_reset_apl_status();

that’s all.

Sometimes i can still use forms after logging out, but that’s because of browser caching. After clearing the cache it’s ok.

Re: How to Logout from Menu–>Security

There is a tutorial for correct logut?

Where must insert the function sc_reset_apl_status();?

Re: How to Logout from Menu–>Security

I created a custom logout button, that simply starts the login form.
I put sc_reset_apl_status(); in the OnScriptInit event of the login form.

There should be a standard way to logout, but I don’t doubt if it exists in SC.

works for me.

Re: How to Logout from Menu–>Security

thanks it works