Refresh after login kicks you back out to login

Got a weird one here. Login page working correctly - have global security provider working well. After login user is redirected to agent-portal.html page. Once there everything is ok, but if you do a simple refresh on the page user gets logged out and sent back to login page. Security provider enforcer is setup on the logged in page correctly and the users identity is setup in the proper server connect query on the page. Don’t understand why it kicks user out with a simple refresh. Setup a test account to be used below. Any help on this please?

http://ahiaagent.com/login-reg.html
user=test@user.com
pwrd: temp123

I think you may need to check ‘No Auto Load’ on your logout action. It currently runs when the page loads and logs you out straight away (though doesn’t redirect). When you refresh the page you’re already logged out so it redirect back to the login page. This is the output in dev tools on your agent-portal page after login:

If you set it like this you can run it on demand instead, then set a redirect on success event on the logout action to redirect to the login page when it runs:
image

1 Like

THANK YOU sbecks! It’s always the little things that get me. Appreciate it - again major oversight on my part.