For each user login different landing pages

I created an area on my site successfully (in DW CS6) (which takes the user name and password of a database), which works perfectly (including 'logout' and 'restricted page' server behaviors added etc.)

However, I am puzzled trying to find how to set up for different users can be redirected to different 'allowed zones' depending on what username they enter. That is to say 1 connects and is redirected to pg X and company 2 connects and is redirected to pg Y

Dreamweaver won't let me specify one page. I tried google, but it make me feel a bit confused with the jargon. As it is not clear when you do your site in dreamweaver (CS6)

Does anyone know steps to DW and phpMyAdmin which would redirect users based on their user name in a data base.

My site is here in case you should see: http://www.reese-test2.co.uk/download.php

Thanks for your help

Sara

Sara.Reese wrote:

Hi Ben, there are 3 users, each with their own home screen

Added a manual condition whenever is fine, as the majority of our customers 1000 + will be all be redirected to the same 'standard' homepage Its only a select few of our 'special' customers, who will have their own login and the home page (for Advanced clients).

I tried with the above code to do this, but I don't think I was sticking to the right place as it was a mistake

On my database (phpMyadmin) I've already implemented 3 columns: company, username & database, example below:

Most of our clients will get the same username and password to enter the same homepage

You can do it for a limited number of users;

First, he must add "society" to the query.

$LoginRS__query = sprintf ("SELECT company, user name, password AND password OF connection WHERE username = %s is %s",

Then you need get the "society" based on the name of user and password:

$LoginRS = mysql_query ($LoginRS__query, $searchDB) or die (mysql_error ());

$row_rsDetails = mysql_fetch_assoc ($LoginRS);

$loginFoundUser = mysql_num_rows ($LoginRS);

And then the last piece of php code should look like below:

Only 3 companies in the database to GET their 'dedicated page' - all the others will go to normal.php if they provide the name of user and password correct.

If (isset($_SESSION['PrevUrl']) & false) {}

$MM_redirectLoginSuccess = $_SESSION ["PrevUrl"];

}

$company = $row_rsDetails ['company'];

If ($company == 'standard') {}

Header ("Location: standard.php");

}

Else if ($company == 'Advanced') {}

Header ("Location: advanced.php");

}

Else if ($company == 'super') {}

Header ("Location: super.php");

}

ElseIf ($company! = 'standard' | $company! = 'Advanced' | $company! = 'super') {}

Header ("Location: normal.php");

}

}

else {}

Header ("Location:".) $MM_redirectLoginFailed);

}

}

?>

Tags: Dreamweaver

Similar Questions

  • ACS5: method of different external authentication for each user account

    ACS4 I could specify a different external authentication for each user account. I'm trying to find a way to do the same thing to the ACS 5? When I go under identity in Access Services, I see the system requirement: username I can use to identify the user who logs in, so that I can directly to a source of different identity, but the separate political configuration for each user is very inconvinient and would require hundreds of policies, in our case.

    I was hoping that we can create a kind of attribute for each user. SysAdmin > Configuration > dictionaries > identity > internal users. I created the new attribute called 'Storage of identity' with the enumeration type, which has 4 values: internal, Entrust Token, Token RSA, counts AD and checked the box "add a political Condition." I can then go under each user and select the storage of identity for each user. But now I can't find where I can use under part of identity of an access policy. I can use it under "Group mapping" but that maps to one group and not to an identity store. I need to use it under the identity somehow, but I can't find how.

    Hello Roman,

    The attribute you created will be available when the user is authenticated through internel ID store, so that you cannot use to select the store ID.

    The best way to do this would be to use other attributes to differentiate the identity store.
    Allows you to create a sequence of identity store so that for each user, ACS will try to authenticate by using multiple identity store.

    For example, you can use these:

    Network status

    > End Station filter

    > Device filter

    > Devide filter Ports

    Here you can import filters from a file and it would therefore be more scalable.

    Hope this helps.

  • Where to store the TS files for each user on a Terminal Server in Windows 2008 Server

    I have a TS w 2008 R2 and have a program that requires files kept for each user in their own folder, where it configures in TS. Each user will have its own folder cache for this program

    Each user login for TS and have a user on a shared folder, this program should have updated files in this folder.

    Hi DavidBabbel,

    The question you have posted is related to the area and would be better suited to the TechNet community. Please visit the link below to find a community that will provide the best support.

    http://social.technet.Microsoft.com/forums/en-us/winserverTS/threads

  • in the case of backup files, are both users of saved files, or files for each user must be backed up separately?

    original title: backup of files

    My wife and I use the same computer, but have different usernames (accounts).  My question is: when a backup occurs files, two files users are saved, or files for each user must be backed up separately?

    Hi toad133,

    ·         What type of backup that you talk too much?

    If you are referring to the automatic backup there backup everything that you have selected or defined to be backed up.

    If you are referring to the manual backup backs up what settings or files that you select to backup such as emails or files.

    Back up and restore: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I stop Firefox profiles great taking place on the C drive for each user?

    I have several users on a Windows Server 2008 R2 Remote Desktop Server (Terminal Server) and all of them use Firefox. Each of their profiles become huge because of their Firefox profiles.

    Seems that all the space the file cache. (C:\Users\User\AppData\Local\Mozilla\Firefox\Profiles\Profile.default\Cache)

    Is it possible to implement a policy within the program to clear the cache for each user or each time the browser is closed or when the user disconnects?

    Hello nukeit108, you can set the preference browser.cache.disk.enable to false, then no cache file will be written to disk (does not affect the entries cached in RAM).

    See also http://kb.mozillazine.org/Locking_preferences

  • It is necessary to download Google Chrome for each user on my Vista computer?

    Why, if I have more than one user, do I download google chrome for each user?  Is there a way I don't have to download a second for the other user?

    * original title - computer with more than one user *.

    Google Chrome since the normal download install personal folders to the user. This allows Chrome to be installed by users who have administrator privileges. Apparently you can install for all users with this procedure:

    http://www.Google.com/support/chrome/bin/answer.py?answer=118663

    Check Google forums, that applies and will be based in the future.

  • Why my logon screen icon double for each user account? What should I do?

    Please help me with my problem

    Why my logon screen icon double for each user account?

    What should I do?

    Hello

    Most likely, this is caused by a 3rd party "software logon." For example, Omnipass is known to cause these 'issues '.

    Please take a look here:

    http://social.msdn.Microsoft.com/forums/en-us/WindowsSecurity/thread/22d7fc0a-595c-4b7c-B195-a19e73e06db3/

    I hope this helps.

    Best regards

    Mieke

  • The opportunity to identify a specific storage for each user or security group.

    Hi all

    I asked how to specify storage for each user or security group on the server of the University Complutense of Madrid. ex. I want user 'weblogic' unable to download a document on the server of the University Complutense of Madrid, more than a gigabyte. the user can check in several files, but thetotal space for all files are not a gigabyte.

    Thank you

    I asked how to specify storage for each user or security group on the server of the University Complutense of Madrid. ex. I want user 'weblogic' unable to download a document on the server of the University Complutense of Madrid, more than a gigabyte. the user can check in several files and the total space for all files not exceeding a gigabyte.

    You can write a rule to achieve this where in the xStorageRule is evaluated based on any set of metadata such as dDocAuthor or dDocSecurityGroup etc., or a combination of metadata.

  • HP laserjet 1022 does not wait for the user to turn the pages when printing double-sided

    My Hp laserjet 1022 printer working properly for years.

    So far, when he executed more paper he tried a couple of times to get more paper and then stops with a message on the PC it is out of paper.

    Very annoyingly, this has changed recently, now when it is out of paper, he tries a couple of times to get more paper and watch the message on the PC, saying that it is paper and then again, try a couple of times to get more paper and again shows the same message on the PC and him back... This continues to go on and on.

    It's especially annoying when trying to print double-sided. Before he used to stop and ask you to turn the pages to print the other side. Now the previous behavior overrides the break to turn the pages and keeps it will try to get more paper. As now, it does not wait for the user to turn the pages, in general it spoils the impression out by getting another paper that is not what I wanted, he drives me crazy! It's really hard to print anything double face now.

    All solutions?

    Operating system is Windows 7, I just downloaded and installed the latest driver for this printer "2013-01-09, Version: 20120918" and I get the same behavior. In the properties of the printer that I put some State Messages to Off and at least I don't get the full windows message screen poping up every time the printer is trying again to get more paper. I have not found all the other parameters that may affect this behavior.

    Help!

    Hello

    I solved the problem! I found the original CD for the printer. I uninstall the current driver and then install CD and now when the printer is out of paper trying to get paper a couple of times and then stops, as it used to be.

    Thanks for your help.

    Martin

  • Is their any restrictions on the total facilities of cloud creative app after purchase of the monthly subscription for each user?

    Is their any restrictions on the total facilities of cloud creative app after purchase of the monthly subscription for each user? For example, an application may not be installed on more than 1 computer. (Or it will break the policy of licensing or software etc.) ?

    1. You can install the software on as many computers as you want
    2. You can activate the software to be used on a maximum of any two computers at the same time
    3. You can only use one of the simultaneously active installations.
  • WHY THE PGA IS REQUIRED FOR EACH USER?

    Hello everyone;

    I have a question about PGA.

    WHY THE PGA IS REQUIRED FOR EACH USER?

    What I got from google...

    Even if information analysis of SQL or PL/SQL is already available in the library of shared pool cache,

    the value that the user want to execute the statement select or update cannot be shared.

    I can't realize that someone can show an example of clear, if possible?

    DB version is 10.2.0.4.0

    OS: oracle linux 5.5

    Thanks in advance...

    PGA is memory private belonging to a specific user. This private memory contains of these pieces that is not supposed to be shared with others. For example, when you sort a part of the data, that does not mean all he wants too. If Oracle retains the sorted data requested by you in your own PGA. Similarly, if you want to query a table with a value of 10, it does not mean that all want the same thing. If these structures are stored in the PGA. For a more detailed description, read the link given by Hoek.

    HTH

    Aman...

  • Do I need separate Adobe contribute for each user copies?

    I'm looking into using Adobe Contribute as a CMS for our intranet. Each Department has their own section, which they would like to publish and modify as needed. My guess is 'Yes', but to confirm, if anyone knows - what I have to buy copies of Adobe Contribute for each user who will be granted these permissions? If there are 6 departments - are talking us about to buy 6 copies of Contribute to be installed on their computer? Please advice... Thank you!

    Hello

    Thank you to the Adobe community.

    I wish to inform you that a contribute license can be installed on both machines max, but executed on one machine at a time.

    In your case if 6 users will work to contribute entered then you will need to buy 6 licenses of Adobe Contribute. But if only three users will work on this topic at a time then 3 licenses of contribute would be sufficient for you.

    I hope this helps!

    Shekhar

  • How to configure applications private for each user?

    I created different users in a single workspace. I want that applications of each user to be private so that user applications should not be regarded by others.
    Can someone suggest me...

    Thus, the term "user" was used in "application developer".

    The idea behind Apex Application Builder is the team and that's why you have offers to work as a team. You want to go in the opposite direction for your reasons.

    The only way I know is to create the workspace separately for each developer. In this way, that each developer sees only its applications in Application Builder. If developers use the same tables/views of db, then you must assign the schema that contains the data for each of these workspaces.

    But if you want to ensure that developers do not yet see each and other data and then they you need to keep the data as separate.

    While it's all just do not forget that some days, that applications must be deployed and end users must Access!

    I'm not aware of any other mechanism to isolate developers.

    Kind regards

  • To create a piece for each user or not?

    My application requires that participants comments do need to connect. They only enter names. As the meeting is not scheduled. It is on the promenade in the base where host awaits the guests. In my case, I have hundreds, then thousands of hosts. For each host, should I create a new room and return to only that user? Is that how the supposed to rooms used or there is no other data structure such as the groups that I can use? Are there limits to how much room an application can create?

    If there are different hosts with no communication and that you want to host meetings at the same time, you must use different parts. However, if there is only one meeting at a time, you can use the same room.

    Also, several rooms is recommended if there are many users per session.

    Thank you

    Hironmay Basu

  • separate e-mail for each user account

    Have the user accounts for my wife and me.  We operate separate e-mail addresses but when frst open Outlook Express all emails appear rather than being sorted to each user. How to achieve good sense of emails for two users accounts?

    If you are using Outlook Express:

    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.outlookexpress.General&cat=en_us_67ae557e-CEEA-4691-9CF6-efbe673e7b70&lang=en&CR=us

    Discussions in microsoft.public.outlookexpress.general

    They will help you in the Outlook discussion group to express above.

    See you soon.

    Mick Murphy - Microsoft partner

Maybe you are looking for

  • Satellite A500-17 x - micro does not work after BIOS update

    I have a Toshiba Satellite A500-17 x which I have just updated the BIOS to version 2, as recommended by the tempro software. Now with the new update my microphone does not work. Where can I download a copy of the old BIOS? ({I used winphlash64 in adv

  • Satellite Pro M70: Unable to connect to the WLan with ConfigFree

    Salvation in the Forum. I have problems with a satellite Pro M70, about gaining control of wireless connections. When I scan with "The Radar" I have ConfigFree for available wireless accesspoints, I get several points available, but it is not able to

  • Import a Photo library external media to FCPX

    Hello I try to import media files from a Photo library on an external hard drive in FCPX. For some reason when you select the media browser, it displays only the Photos stored on the internal hard drive. And if I open the browser of photos from the e

  • [German] Panels auf 2 different Bilschirmen

    ICH habe ein Programm also eine exe. Am mit 2 screens. Wenn ich das Programm starte green ein auf dem Panel 1. Bildschirm und das andere auf dem 2.Bildschirm Panel. -Wie kann ich das change? I would like both panels auf dem Bildschirm gleichen. -Wie

  • event comands

    Hello I built a structure of the event to an event that can be run by two signals the question I have is how can I know my where signals was trigged? Best regards Tinnitus