close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Logout - mySQLi Server Behaviors

Thread began 9/13/2014 7:48 am by Andrew | Last modified 9/18/2014 1:52 pm by Jason Byrnes | 598 views | 7 replies |

Andrew

Logout - mySQLi Server Behaviors

How can I modify the Logout so that on logging out user is taken to a new page?

Sign in to reply to this post

Jason ByrnesWebAssist

add the restrict access behavior, and make sure it is after the logout behavior.

in the restrict access behavior you can set a failed redirect.

Sign in to reply to this post

Andrew

Hi Jason,

Thanks for your reply.

I applied your advice and with a little bit of adjustment to what I had done before, it now works.

Thanks.

However ...

it has thrown up the problem that if user1 logs out and user2 logs in without closing the browser in between users, then user2's login attempt takes him straight to the logout page. There is no code on any html/php pages in the site that have a link to the logout page (it is done via js).

I assume that it is something to do the browser cache.

It shouldn't be a major problem but have you any advice?

Thanks

Andrew

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

Andrew

See below

Sign in to reply to this post

Jason ByrnesWebAssist

in actual fact, that behavior is as designed, since the restrict access is used to perform the redirect

On logging in, it will try to go to the last restricted page.

the work around would be to hard code the redirect on the logout page rather than using the restrict access as previously sugested:

<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
header('Location: ../index.html');
}
?>
Sign in to reply to this post

Andrew

It worked.

Thank you

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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