close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to create logout link

Thread began 4/10/2019 11:58 am by Raza | Last modified 10/21/2019 9:59 am by Ray Borduin | 2321 views | 16 replies |

Raza

How to create logout link

I am trying to create logout link but its no redirect to login page

Sign in to reply to this post

Ray BorduinWebAssist

There is nothing on that page that would redirect to the login page. Usually you add a message to the logout page that says: "You have been logged out, click here to log back in" or something like that.

If you want to go directly to the login page when they log out, then have the log out link go to login.php?logout and then put the log out server behavior on the login page with a trigger: isset($_GET["logout"]

Sign in to reply to this post
Did this help? Tips are appreciated...

Raza

here is my login page

Sign in to reply to this post

Ray BorduinWebAssist

What am I looking for? Please describe the issue you are having so I can properly guide you. It looks like this login page would work to me.

Describe what you are trying to do and what happens that you expect to work that doesn't.

Sign in to reply to this post
Did this help? Tips are appreciated...

Raza

sir, how I create logout link

Sign in to reply to this post

Ray BorduinWebAssist

There are a bunch of ways you can do it. It depends on the user experience you are trying to support. One way is to create a new page with the text "You have been logged out" and then apply the server behavior "MySQLi Logout User" with the trigger "before page loads". Then any link to that page would work as a logout link.

Sign in to reply to this post
Did this help? Tips are appreciated...

Raza

Thanks sir its worked :)
I would like to tell that how its work so that other people can get help by it
create a new page and then apply the server behavior "MySQLi Logout User" with the trigger "before page loads". Then any link to that page would work as a logout link.in your new page your code will be like this:
if ("" === "") {
$LogOut = new WA_MySQLi_Auth();
$LogOut->Action = "logout";
$LogOut->Name = "loginForm";
$LogOut->execute();
}
add $LogOut->Redirect("your_login_page.php); before $LogOut->execute();
Thanks

Sign in to reply to this post

Michael

How to create logout link

Hi Ray,

There is a problem with the logout page. I have created mine as seen below but when I type the link to dashboard on the address, the dashboard load.

Here is my logout code

<?php
if ("" === "") {
$LogOut = new WA_MySQLi_Auth();
$LogOut->Action = "logout";
$LogOut->Name = "Admin";
$LogOut->Redirect("login.php");
$LogOut->execute();
}
?>

Attached is my logout.php file for your review

Sign in to reply to this post

Raza

hi Michael
what is your login form name?

Sign in to reply to this post

Michael

My login form name is "login_frm"

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...