Page 1 of 1

Security, forced logout

Posted: 2019-08-12 09:21
by jmcgov
Hi AppGini'rs
I have noticed that there are times when I edit the url (in a naughty way, say to try to access a table I dont have access to) that the application gives me a "not authorised" message and logs me out of the application.
I have also created created a number of scripts, based on Udemy tutorials, including
- keep a record of login activity
- create custom page, and check access rights of the user
I'd like to enhance the above scripts, to auto-logout unauthorised users - is there an inbuilt function I can call, or do I need to create my own?
TIA, James

Re: Security, forced logout

Posted: 2019-08-17 11:54
by jmcgov
Anyone ?? :)

Re: Security, forced logout

Posted: 2019-08-17 20:45
by bescott53
jmcgov, there is an old post about this here: viewtopic.php?f=4&t=40

you might find it useful

Re: Security, forced logout

Posted: 2019-08-20 15:46
by jmcgov
Thanks bescott53. Probably reading between the lines, there is no function in the application that I can access from the hooks. Thanks for pointer. JAmes

Re: Security, forced logout

Posted: 2019-08-21 13:36
by pbottcher
Hi,

maybe you can call

Code: Select all

logOutUser();
This shall logout the current user.

Re: Security, forced logout

Posted: 2019-08-28 08:49
by jmcgov
Yes pböttcher, thanks