close ad
Databridge V2 with MySQLi support IS Now Available!
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 2:58 pm by Raza | Last modified 4/15/2019 11:45 am by Ray Borduin | 51 views | 6 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

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

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

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

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...