close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

User and Admin Logout?

Thread began 1/15/2010 2:34 pm by woodenboat | Last modified 4/20/2010 5:45 pm by woodenboat | 3801 views | 26 replies

Pardall1955

Log Out functions

Ok, I´m getting more and more confused here, but I´ll put here all the different options I have tried since.

--------------------
1.
Just added the PHP Code:
<?php
if(!session_id()) session_start();
print("<pre>");
var_dump($_SESSION);
print("</pre>");
?>
---------------------------------------
here are the results after I logged in:
---------------------------------------

array(1) {
["WADbSearch1_adm_adv_Results"]=>
string(0) ""
}

---------------------------------------
now are the results after I logged out and hit the back page button:
---------------------------------------

array(0) {
}
---------------------------------------

BUT EVEN THEN THE ADMIN PAGE SHOWS UP WITH ALL THE
OPTIONS TO CHANGE, ADD, DELETE AND WHATEVER i HAVE THERE.

-----------------------------------------------------------------
Now let me tell you exactly what I have done here so you can undertand better.

On the top of each page inside the ADMIN directory I have added this code:
----------------------------------
<?php
if (!isset($_SESSION)) {
session_start();
}
?>
<?php require_once( "../WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php
if (!WA_Auth_RulePasses("Administrators")){
WA_Auth_RestrictAccess("../index.php");
}
?>
-----------------------------------

now when you look at the SERVER BEHAVIOR and click on it, that is: Security Assist Restrict Access to Page.

the only thing is shows when it was added was this code:
---------------------------------------------
<?php
if (!WA_Auth_RulePasses("Administrators")){
WA_Auth_RestrictAccess("../index.php");
}
?>
---------------------------------------------
which was the code you asked to delete right?

So!!! .... my question is what is supposed to be in each page inside ADMIN folder (in my example) and should it be only on the first page like adm_index.php in my example and not in any other page. Which doesn't make sense or anyone would be able to see it, once they know which pages are there.

What am I doing wrong here ???

One more thing for now.

I'm running this on a localhost server for now, (my home server), Windows-Vista in my case) does that have anything to do with this or not.

This only happens when giving the User Level rights. If I were to just compare name and password for login by the dreamweaver Server Behavior User Authentication process and then specify the Restrict Access to page, it logs me out fine.


??????????????????????
I need to resolve this, I have a large project with many clients levels and rights on this site.

Thank you.

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