DMXzone Security Provider PHP Support Product Page

Not a problem

Can't apply logout to a button in an included file?

Reported 09 Sep 2014 15:55:15
1
has this problem
09 Sep 2014 15:55:15 Brad Lawryk posted:
I finally got the login working but now I can't set a log out button because my logout button is in an included header file that does not have an executor on it?

Replies

Replied 09 Sep 2014 15:59:08
09 Sep 2014 15:59:08 Teodor Kuduschiev replied:
Hi Brad,
Please provide a link to your page. There shouldn't be an issue to use your logout button with a php include.
Replied 09 Sep 2014 16:10:25
09 Sep 2014 16:10:25 Brad Lawryk replied:
The file I am trying to add the logout button to is

dashboard.auroratecsolutions.com/inc/header.php

And the code I have for the logout link is:

Quote<!-- logout button -->
<div id="logoutButton" class="btn-header transparent pull-right">
<span> <a href="/"><i class="fa fa-sign-out"></i></a> </span>
</div>
<!-- end logout button -->
Replied 09 Sep 2014 16:12:00
09 Sep 2014 16:12:00 Teodor Kuduschiev replied:
So, where is the logout behavior applied actually?
Replied 09 Sep 2014 16:13:49
09 Sep 2014 16:13:49 Brad Lawryk replied:
Well it isn't applied. I need to apply it to the code that I pasted in the previous post. But when I go to apply the logout behaviour it tells me I can't because I don't have an executor on the page. So right now the logout isn't applied - that's the issue. I can't apply it.
Replied 09 Sep 2014 16:58:16
09 Sep 2014 16:58:16 Teodor Kuduschiev replied:
Well, apply it on a page that has the security provider, cut and paste the code in the include
Replied 09 Sep 2014 17:21:34
09 Sep 2014 17:21:34 Brad Lawryk replied:
Thanks Teodor, I think I may have found a way that will work for me. I will just have my log out button go back to my login page where I will hide the login form if logged in and show a log out confirmation button in its place.

If that doesn't work, I'll try your suggestion ;-)

Reply to this topic