redirect the user based on the level of access

Using the server behavior of Log In User I want to redirect users to different pages according to their level of access.  For example, users of access level X would be redirected to x.html while users access level there would be redirected to y.html and so on.  No idea how can I adapt the code generated by the Log In User server behavior to give this capability to my login page?  I use php/mysql.

Thank you

Reiger

With Dreamweaver Log In User server behavior, you send users to a single page if they connect successfully. Set this page to accept the two levels of user access.

Inside the page, use a conditional statement to redirect users to the relevant pages. Access level is stored in a session variable called $_SESSION ['MM_UserGroup'].

if ($_SESSION['MM_UserGroup'] == 'x') {
  header('Location: http://www.example.com/x.php');
  exit;
} elseif ($_SESSION['MM_UserGroup'] == 'y') {
  header('Location: http://www.example.com/y.php');
  exit;
}

Tags: Dreamweaver

Similar Questions

  • How users share a virtual machine with the level of access under total control?

    Hello

    In our Lab Manager environment, we have created workspaces and users can create and share virtual machines in these workspaces. The problem is the level of access only I can see when users share virtual machines is read-only. How can users share their machines with other users with the full control access level?

    Thank you.

    It is a constraint of security designed to prevent the full control permission, being too easy accidentally to give everyone in a system.

    The answer depends on whether you have PF3 or LM4.

    Behavior of PF3: share to everyone in an org is read-only, while sharing a physical person should give you full read/write/control

    LM4 behavior: share in all the world in an org, individuals selected in an org or anyone in a different workspace == read-only, while in the same workspace gives you the opportunity.

    That said, total control: the ability to deploy/undeploy it or change the settings of the virtual machine, NOT if the specified user has write access the console.  The distinction is quite important.

    Also, page followed, but he had the wrong information, there may be an arbitrary number of connections of the competing console to the same VM (oh, I'm sure that there is a limit, but I did not deliberately try to find).  It does give the impression that several people are faced with the same mouse and keyboard...

  • Levels of access on PIX privilege

    Hello

    Can someone direct me to a link or a document that explains the level of access for each of the 16 levels available on PIX privilege?

    Thank you

    Haitham

    Hello

    hope this link helps out u...

    http://www.Cisco.com/en/us/products/sw/secursw/ps2120/products_configuration_guide_chapter09186a00800eb72e.html#wp1077016

    regds

  • Windows 7 action center > security > I can't change the uac user account at the level of the control window freezes / uac rest!

    PROBLEM: ACTION CENTER > SECURITY > USER ACCOUNT CONTROL FREEZES AND REMAINS OFF - I CAN'T CHANGE THE UAC LEVEL. When access to the center of the Action (Windows 7-32 bit) > Security > UNDER USER ACCOUNT CONTROL IS OFF > said UAC will be NEVER NOTIFIER > and below it in blue is the option to click on "Choose your level of UAC" > I click it and it opens a window "DECIDE if he MUST BE INFORMED of CHANGES to YOUR COMPUTER" with a feature of landslide to choose the level > I DRAG to ALWAYS NOTIFY ME AND EACH TIME the SCREEN is IT FREEZES LET ME HIT OK - so I can not change this setting. It won't let me change to always warn me - the recommended setting, and I can't go beyond that! The window closed either! I'm trying to close the window by clicking end task in Task Manager - it takes several attempts before / if it can close this frozen window... BUT THE KEY IS THAT I CAN'T CHANGE THE UAC LEVEL - THE SCREEN FREEZES AS SOON AS I GLIDE TO ALWAYS WARN ME - HELP? * NOTE: a few times after the Task Manager tried to close the window without success, I saw a box pops up that says: Manager of COM surrogate has stopped responding... he tries to fix - as if Windows stops responding, and he tries to recover or fix the problem. I would like any help or information please, as to why I can't change this setting, even after I give an administrator password, you are prompted, to say good make - when I am logged in as a standard user. Help? Thank you!

    Hi Shellzak,

    Thanks for posting this question in the Microsoft Community!

    I understand that you can not change the UAC settings on the computer and the system hangs. I'm sorry for the inconvenience caused to you. Rest assured that I will do my level best to help you.

    Did you of recent changes to the computer before the show?

    I suggest the following method and check if it helps to solve the problem.

    I suggest you try to activate UAC from the command line and check if it helps.

    (a) open an elevated command prompt. To do this, click Start, click programs, accessories principally made, right-click Guest, and then click Run as administrator. If you are prompted for an administrator password or a confirmation, type the password, or click on allow.

    (b) run this command

    Reg.exe ADD HKLM/v EnableLUA /t REG_DWORD /d 1/f

    Registry warning: Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: http://support.microsoft.com/kb/322756/

    It will be useful. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

    Kind regards!

  • Redirect the user to login spalsh page

    Is it possible to have a user enter username and password to access the internet on a cisco 800 series router?

    Say they open IE and type www.google.com and before they get a web access redirected a plash of logon credentials page.

    If it can be done on a router 800 series, which would be recommended for this device?

    Thank you

    Phil

    Hello

    I think that Authentication Web is what you're looking for, I don't think that 800 series she supports.

    RES

    Paul

  • Suppress the display of the user based tab

    I am putting together an application and I have three classes of users using Apex 4.2.0.00.27.

    (1) public - the user can access all public pages with no connection.

    (2) registered user - the user can watch reports.

    (3) Director - full access to the application.

    The public access two tabs.  The registered user can access 5 tables (2 public pages and 3 reports), and the administrator can access all pages.

    How can I suppress the display of tabs based on the users role?  I looked at the properties of the tabs and don't see anything that would be useful.

    Thank you

    -Rob

    Rob,

    It's the perfect use case "permissions."  Create 3 authorizations and in the definitions of the tab you can set which permission is allowed to see the tab.

    -Jeff

  • Hello! I have already repeatedly sent an invitation to a new user of creative cloud. This invitation never reaches the level of the receiver. Or even anti-spam filter in the other mailboxes this mail to find. Is it because the word testuser occurs in the

    Hello! I have already repeatedly sent an invitation to a new user of creative cloud. This invitation never reaches the level of the receiver. Or even anti-spam filter in the other mailboxes this mail to find. Is it because the word testuser occurs in the mail?

    Hi Eric, if you have tried all the steps from the link mentioned in the previous post, please Contact Customer Care

    Atul_Saini

  • User passwords do not work at the level of the application after updating of the database

    Hello

    Working on the updating of the database user passwords do not work for front end users but the same passwords work at the db level.

    We backup before refresh and restraint after the update, but if the user tries to connect to db, they receive the error invalid password/username.

    but passwords are working at the level of the DB if reset us the password then it works fine, but we cannot do this for all users of all time. can someone share the knowledge or solution for this problem.

    DB version: 11.2.0.3

    operating system: AIX

    Thank you

    892574 wrote:

    Yes, the process is correct.

    We are capture passwords user via display SYS. USER$

    I didn't see any errors in the logs I see only out put modified user.

    Thank you

    Do you mean that you update the column SPARE4 of $ USER (which is a table, not a view)? I don't think it will work, because the password is salted with a random string that will be different in the two databases. It might work if you return to the use of passwords for 10g, which are salty with the user name. See here, the 10 GB hash stored in the PASSWORD column is the same in the two databases, but the 11g in SPARE4 hash is different:

    orclz >

    orclz > conn sys/oracle@orclz as sysdba

    Connected.

    orclz > create user fred identified by Ginger;

    Created by the user.

    orclz > select password, spare4 of user$ where name = 'FRED ';

    PASSWORD

    ------------------------------------------------------------------------------------------------------

    SPARE4

    ------------------------------------------------------------------------------------------------------

    9C592D45D54D1FB2

    S:DF5BEC6914DFF48B39261EAA4DCF5746A309E50E791F6F90FBF2F33A8CD5; H:22E34131E43CC3DF07440A0DC2A45F22

    orclz > conn sys/oracle@orcla as sysdba

    Connected.

    orcla > create user fred identified by Ginger;

    Created by the user.

    orcla > select password, spare4 of user$ where name = 'FRED ';

    PASSWORD

    ------------------------------------------------------------------------------------------------------

    SPARE4

    ------------------------------------------------------------------------------------------------------

    9C592D45D54D1FB2

    S:4FE5925E671719B9CA5904C42AAD965753CAC4891C31F1BA9B9DA83D3255; H:22E34131E43CC3DF07440A0DC2A45F22

    orcla >

  • A group of users with more than security at the level of line!

    I have a users group and with morethah, how to control the security level line in Inractive report data?
    For example.
    user1 to access the line 1.5 < br >
    user2 to access the line < br > 1,9,6
    the util_3 to access the line 7 < br >
    UserX See all tier 1 ~ 100000

    I try to appy security at the level of the table, its not feasible!
    select doc_name ,create_by from doc_table where create_by=:APP_USER
    Thank you
    RAM

    This request a link with another thread and reached the requirement.

    https://forums.Oracle.com/thread/2557216

  • Redirect the user to the different menu item

    Hi guys,.

    JHeadstart 11.1.1.3.35

    I use the JhsTree menu structure. One of my menu items is a wizard that goes directly to the insert mode, so at the end of the wizard, I redirect the user to a different group (menu item). The problem is that while the new menu page is displayed to the user, the previous menu item (Assistant menu) is still selected, so that if you try and you reenter the Wizard menu item, nothing happens as the structure of the menu and the page are out of sync (and the menu believes that you are already on the page of the wizard even if you're not)

    My question is, also the creation of a navigation to a different menu item rule, how can I programmatically change the selected menu item?

    See you soon,.
    Brent

    Brent,

    No, you can remove these goods safely.

    Steven Davelaar,
    JHeadstart team.

  • Redirect the user to the previous page after login

    Hello

    The login process on page 101 of the application redirects the user to page 1 after successful login. If the user is currently on page 9 of the application, the session expires and the user is redirected to the login page. Now when the user connects again, can redirect us the user to the page 9 instead of page 1?

    Thank you
    Machaan

    Tony, when the session expires after idling, wouldn't the point of application is invalid and so no point of application of the new session value any?

    Machaan,
    My suggestion would be to save the current page to a variable preference of the user (by saving it to an application process that is running on the page of each page load). Extract the value of this preference after connection and redirect to this page (owa_util.redirect_url) if it is not null. On logout, delete this preference, so that you are not redirected to this page in the next connection.

    Note that the implementation of your condition (using any approach) could lead to problems that you might want to consider.
    For instance if the user was in a page that has a dependent process/calculations onload on some elements of the page (another page set) as would be the case with a child page/edit record of pages; It can generate many unforeseen errors when you connect and redirect to this page without setting any of these elements.
    Another case would be when these pages were opened in pop-up windows or the content of the iframe (and which should be called in a different page) and the parent page has expired without any submission (so once again is the child page last page)

  • How common the like required field at the level of the user interface

    Hi all

    How to set the field as mandatory at the level of the user interface.

    Thanks in advance
    C.Karukkuvel

    Set required = "true" on any input component.

    Pedja

  • Redirect the user to the main page

    Hello

    I use JDeveloper 10.1.3.
    I have two pages (page 1) (page 2), I want only navigation to go to page1 page2 and vice versa. I don't want users to be able to move from a right external page to page 2. Is there a way to redirect user to page 1 if they try to go directly to page 2?

    Thank you very much
    Steve

    Hello

    Why u use controllerclass in pageDef as slope below...

    pageDefinition xmlns = "http://xmlns.oracle.com/adfm/uimodel."
    version = "11.1.1.54.7" id = "TestPageDef".
    EnableTokenValidation = "false".
    ControllerClass = "view.frameworkext.CustomPagePhaseListener"

    This will control the navigation of your page and you can override the onPageLoad() method and you can check the basic settings load the page but you can redirect to the home page by redirecting the answer...

    Kind regards
    Tiznit

    Published by: Tiznit SIS on December 16, 2009 12:21

  • Redirect some users with the login procedure

    Hello guys of the Forum.

    is it possible to redirect specific users, once they connect.
    I think on page 101, the login procedure.

    I tried the following:

    Guess I'm the user someone.
    (I made an expression of pl/sql with apex_application.g_user and it gives me the username that I recover in the IF/ELSE paragraph below.)

    If apex_application.g_user in ('someone') then
    (wwv_flow_custom_auth_std). Login
    P_UNAME = > v ('P101_USERNAME'),
    P_PASSWORD = >: P101_PASSWORD,.
    P_SESSION_ID = > v ('APP_SESSION').
    P_FLOW_PAGE = >: APP_ID | ': 425'
    );
    on the other
    (wwv_flow_custom_auth_std). Login
    P_UNAME = > v ('P101_USERNAME'),
    P_PASSWORD = >: P101_PASSWORD,.
    P_SESSION_ID = > v ('APP_SESSION').
    P_FLOW_PAGE = >: APP_ID | » : 1'
    );
    end if;

    But this way always lead me to page 1, rather than page 425

    Do you have ideas or other possible solution?

    What about Stefan

    Hello:

    A solution is proposed in this post Re: logon username determines the page that opens, how can I achieve this?

    Another way is to have your login page always go to a set of pages. In this page, you create a process before header which will then redirect users to their assigned pages.

    CITY

  • How to redirect the user account to the correct folder in Documents and Settings?

    Under XP.  One of the user accounts seems to have been directed to the wrong user folder (the one that has been somehow created) in Documents and Settings.  Start menu, My Documents, etc are now empty, but they used to be OK.  The (desired) exact content is always in a folder user, but it is apparently not accessed.  I looked and looked and can't find how to reset the pointer (for example, identify the correct folder for that user).  Any help would be greatly appreciated.

    Hello

    You can try the steps of troubleshooting provided in the link below.

    When you copy a user profile to a folder, the folder attributes are removed in Windows XP and Windows Server 2003

    http://support.Microsoft.com/kb/922381

Maybe you are looking for

  • 5.6.1 pages will not save or export

    System: Pages 5.6.1 El Capitan 10.11.4 & iMac 21.5 mid-2011 Error message: could not open the file "trifles.pages". I can't save a file without a title with the same error message - I'm moving this to "Rename" file and then saving it, that seems to w

  • M40: Battery cannot be loaded

    1 battery can be recharged at ALL. Laptop works only when - at the same time when you use Notepad - accumulator is recharged.

  • type definition and reference

    Hello When I look at the 'Use' in the opinion of Types column, I am fair to assume that the first location given for a type whose type is defined, all the others where it is referenced? Example: Use of Version of Type name OMS_StdQueueInput container

  • 80070436 error code when I try to download an update!

    Help!  Try to download an update on Windows Vista titled 'Ralink - network - Linksys Wireless-G USB Network Adapter' but get the error code 80070436 when I do.  And again I say HELP!

  • I can't do the network wireless hp 7500 to connect. I use wep-64 and shared.

    I can't network hp Officejet 7500 wireless to connect. I use wep-64 and shared. I have 7 systems properly using this configuration. 2 printers, 1 office, 1 router and 3 laptops).