close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Restricting Access to Page

Thread began 7/17/2012 8:29 pm by salaroche | Last modified 7/24/2012 10:28 am by Jason Byrnes | 2737 views | 8 replies |

salaroche

Restricting Access to Page

Hi:

My administrative program (Website) is working exactly as I want it to, except for the "Restrict Access to Page" server behavior.

I have inserted that behavior in the page where users LogOut so that they would have to LogIn again if they wished to go back to that page, but DW doesn't restrict access to it; it allows users to go back and continue working on the site even after they have logged out (Shouldn't the "LogOut" behavior destroy all session variables?)

Is there anything I'm not doing right?

Thank you for your attention.

Sign in to reply to this post

Jason ByrnesWebAssist

Imposible to tell what is wrong without more details.

What rule have you applied to the Logout page?

How is the rule defined?

What Sessions are created by the login page?

Sign in to reply to this post

salaroche

Jason:

Attached please find the two pages in question. index.php is the logIn page and C-Panel is the page with the LogOut button.

If you wished to see the actual website in action please tell me where I can send you the URL and the logIn info.

Thank you for your attention

Attached Files
SalarocheLogOut.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the logout behavior is set to trigger if the doLogout query string is set to true


make sure the logout link includes that query string

Sign in to reply to this post

salaroche

Jason:

Thank you for your reply, but I frankly wouldn't know exactly what query string I would have to put where. Are you refering to this string? :

$logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
$logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
}

And, if so, where would I have to insert it?

If you care to be a bit more specific it would be highly appreciated.

Thank you for your attention

Sign in to reply to this post

Jason ByrnesWebAssist

i am referring to the link to the page that is supposed to trigger the logout, the logout link must include the doLogout=true querystring:


<a href="pagename.php?doLogout=true">click here to logout</a>

Sign in to reply to this post

salaroche

Jason:

Yes. I inserted part of what you suggested in the -$logoutGoTo- string and got: $logoutGoTo = "index.php?doLogout=true"; which works perfectly well. Users can no longer go back to that page after logging out.

Many thanks for your attention

Sign in to reply to this post

salaroche

Jason:

Actually the modification I made didn't work as well as I'd thought. The first time I click on the browser's "Back" button after logging out the browser stays put, but the second or third times it goes back to different pages within the website. Bummer.

Any suggestions?

Thank you for your attention

Sign in to reply to this post

Jason ByrnesWebAssist

I would need to see this happening.

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

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