Security, forced logout

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
User avatar
jmcgov
Veteran Member
Posts: 37
Joined: 2018-12-19 01:31

Security, forced logout

Post by jmcgov » 2019-08-12 09:21

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

User avatar
jmcgov
Veteran Member
Posts: 37
Joined: 2018-12-19 01:31

Re: Security, forced logout

Post by jmcgov » 2019-08-17 11:54

Anyone ?? :)

bescott53
Veteran Member
Posts: 135
Joined: 2013-02-24 00:13

Re: Security, forced logout

Post by bescott53 » 2019-08-17 20:45

jmcgov, there is an old post about this here: viewtopic.php?f=4&t=40

you might find it useful
Appgini 5.72

User avatar
jmcgov
Veteran Member
Posts: 37
Joined: 2018-12-19 01:31

Re: Security, forced logout

Post by jmcgov » 2019-08-20 15:46

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

pböttcher
AppGini Super Hero
AppGini Super Hero
Posts: 606
Joined: 2018-04-01 10:12

Re: Security, forced logout

Post by pböttcher » 2019-08-21 13:36

Hi,

maybe you can call

Code: Select all

logOutUser();
This shall logout the current user.

User avatar
jmcgov
Veteran Member
Posts: 37
Joined: 2018-12-19 01:31

Re: Security, forced logout

Post by jmcgov » 2019-08-28 08:49

Yes pböttcher, thanks

Post Reply