close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

User level access

Thread began 5/23/2010 4:25 pm by Pardall1955 | Last modified 5/24/2010 4:56 pm by Pardall1955 | 711 views | 2 replies |

Pardall1955

User level access

I have set up a group (USERS(2) & ADMINS(3)) which gives them their respective rights to the cpanel, but a also have another 2 levels Administrators(3) and Visitors(1) by itself

As I login as Users & Admins when go to pages that only administrators have rights, it sends me to the not_authorized.php page, but when I log out and hit the back page on the browser, it allows me to see the pages again.

If I login as Administrator, it gives all the rights to modify, add, etc. But when I log out and hit the back page on the growser, it also allow me to see the pages again, except that it only allows the same rights as the Users & Admins, to see and search.

On both cases it should not allow me back into the cpanel at all. I also clear the browser cash and it still allows me to get back into cpanel and visualize the the Users & Admins pages. It's weird. I've done other sites and looked over the code and it's all the same and on this one it gives me that problem.

Another question: Someone already had posted previously but I still didn't quite get it.

If you have everyone using the same Login page, administrators, members, users and perhaps visitors, can you redirect each person to their respective pages or directories, can you make a CASE inside of the login page to where you can give the option for each and every type of login.

Ex.

Case()
{
if (visitors = 1 goto VISITORSDIR/index.php
else)
if (users = 2 goto USERSDIR/index.php
else)
if (administrators = 3 goto ADMIN/index.php
else)
}


If something like that is not possible at the moment, can you people consider implementing it in the near future Security Assist Plug-In.


Your help is much appreciated,


thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

most likely the groups you are creating in the access groups manager have a blank value in them

In the access groups manager, try clicking below the last text value, if you can make a selection, there is a blank value and it should be removed.



To conditionally redirect to another page based on the logged in users user level, you could add a switch case statement on the page the login redirects to. In php the code would look similar to:

php:
<?php

switch ($_SESSION['userLevel'}) {
    case 
1:
        
header("location: VISITORSDIR/index.php";
        break;
    case 
2:
        
header("location: USERSDIR/index.php";
        break;
    case 
3:
        
header("location: ADMIN/index.php";
        break;
}
?>
Sign in to reply to this post

Pardall1955

Yes, I would never guess that those blank spaces would do such a thing, I have 2 blank spaces there. But then again, it´s by making mistakes that we learn how to get around them.

I will try the other solution and see if it works, that would be great not having to create more than just one login for all different levels.


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