Dynamic redirect on successfull login

ok i have got the normal priviledge login working great but
what i would like to do is this..
i am using mysql/php and running on a test server win xp
using the phpdev server setup from firepages all working perfectly.
User table consists of several rows but the main one in
question contains a field called start_page with a url in the form
of /subdirectory/urlname.php this is a subdirectory of the
directory holding the login page.
what i would like to do is using the login behaviour if
possible redirect the customer (2 types) or admin to their own
start page (contained in the start_page field in the database
record).
i have tried using the parameter settings in login behaviour
to dynamically set the url from the record set (record set contains
the username password and start_page) however this just throws up
an error in the code.
the reason i want to do this is to eliminate the need for 3
separate forms to login each user type (which would work as i have
it that way now) however i would prefer to process the one login
form with the behaviour and dynamically redirect to the correct
start_page based on the record value..
ps i am ok with adapting code to a certain extent but am in
the process of getting to grips with php (normal asp coder)
thanks for your help in advance. these forums are a goldmine
tom

Sorry don't know PHP but in ASP I would add an 'access_group'
column in my db. On the login page I would then script the page to
allow username and password access to the start page and show items
depending on 'access_group' leve.
Perhaps something like:
<% If Session(""MM_UserAuthorisation") = "customer_type1"
Then %>
Redirect script or HTML to show appropriate information would
go here.
<% End If %>
Hope this is of some help. Forgive me it may not be the best
solution but along the lines of what I would try doing.
Jules

Similar Messages

  • Login User with Dynamic Redirect

    Hi,
    I have used the "Login User with Dynamic Redirect" with asp
    VBScript. But
    now I´m going to make a PHP/MySql site.
    Does anybody know of a extension that can make dynamic
    redirection from
    logon page.??
    /mike.

    Michael wrote:
    > I have used the "Login User with Dynamic Redirect" with
    asp VBScript. But
    > now I�m going to make a PHP/MySql site.
    > Does anybody know of a extension that can make dynamic
    redirection from
    > logon page.??
    You don't need an extension. The built-in Log In User server
    behavior
    does it.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Redirecting user to login page after session expiry

    Hi,
    Default session expiry implementation in sap EP6.0 doesn't work properly. To overcome this, we have implemented one component where we check the idle time and throw the user back to the login page if the idle time has exceeded the session expiry period. This component has been added to desktop inner page as an iView. Following is the logic put in this component.
    IAuthentication ia = UMFactory.getAuthenticator();
    ia.logout(httpRequest, httpResponse);
    httpResponse.sendRedirect("/irj/portal");
    We are successfully getting the login page after session expiry. Issue is, our portal server is running on 11111 port. We cannot change this to 80 on unix because of unix limitations for the port number. So we have put one apache web server before our portal server. Apache web server is listening on port 80 and forwarding the request to our portal server.
    Now when user is redirected to the login page, url being shown in the browser is http://<host_name>:11111/irj/portal but I am expecting http://<host_name>/irj/portal (without port). I have tried putting the full url in sendRedirect() method but that too doesn't work.
    Any help is highly appreciated.
    Regards,
    Chandra

    Hi Chandra,
    Let the URL be relative in the sendRedirect i.e.
    httpResponse.sendRedirect("/irj/portal");
    However since you have a Reverse proxy in front, the response header for redirect will not contain the address of the reverse proxy in this case, your servername without port. You have to properly configure your reverse proxy so that the HTTP Headers are changed properly before sending the response to the users.
    Check this URL,
    http://httpd.apache.org/docs/1.3/mod/mod_proxy.html#proxypassreverse
    This gives you the details on configuring your apache.
    Hope this helps.
    Ankur
    P.S. If this helps please reward points.

  • Web Auth Type: Customized(downloaded) Redirect URL after login not working.

             5508WLC as anchor controller with WLC1 and WLC2 with WCS. I have 2 public ssids set up to go directly to the internet.
    Everything is working as it should.  I downloaded the web auth bundle from Cisco and  will just use a disclaimer page and then if the user clicks on the accept button they will be redirected to our company web page, and then they can get out to the internet.
    I have edited the aup.html and login.html to say what I want it to.  I have 2 different login.html pages and bundle to a .tar file like the documentation says.  I download it via tftp to the controller and it is successful. The disclaimer page opens up when I connect and it looks as it should.  The problem is I cannot seem to get the accept button to work. It redirects to a web page but it is undefined. 
       I must be missing some setting somewhere, but I just can not seem to find it.  Is there any line I need to edit in the login.html files that will redirect the page.    The config on the Web Login Page  Redirect URL after login is http://www.mccg.org which is our home page.
    Any help will be appreciated.  I cannot seem to fine very good documentation, or I am just overlooking something.
    Thanks
    John   

    Your HTML code is wrong. Attach your code if your okay with it and I can check.
    Sent from Cisco Technical Support iPhone App

  • How to redirect user from login page to "Set Challenge question" page

    How to redirect user from login page to "Set Challenge question" page (NOT custom page) after 3 un successful password attempts?
    Meaning when user types wrong password 3 times they will be redirected to set Challenge question page. If user answers the challenge question then password reset page should be appeared other wise (after remaining 3 un successeful challenge question answers) account should be locked out.
    thanks for your help.

    hi sandeep
    Thanks for your answer. Let me ellaborate more on the requirement here.
    - Password Policy and Lost Password management are set up in the identity system
    - Configure login tries allowed= 5. Verify accout is lock out after 5 unsucessful login.
    This is what need to achieve.
    1) If a user attempts to login 3(not 5) times using an incorrect login credential he/she should be redirected to set challenge question (security question) page.
    2) Then if the user attempts (remaining) 2 times incorrect challenge answer then his/her account should be locked out.
    3) If he/she answers the challenge answer correctly then he/she should be redirected to password reset page.
    Is this possible?

  • AD FS - KB3003381 causes redirect loop on login

    Hi,
    I'm using AD FS 2.1 for SSO (2 IIS sites and several WCF services) but my users have been seeing redirect loops when they try to login. Once the user's browser recognises the loop and interrupts it, they are able to either resubmit the request with a page
    refresh (depending on the browser) or navigate to the URL of the site and they are logged in, but this is not a good workaround. We are using SecurEnvoy for 2FA.
    This behaviour started shortly after KB3003381 was applied to the production environment, and I have replicated the behaviour on our staging environment. Removing this patch from the staging environment causes the login mechanism to behave normally.
    From Fiddler, once users have authenticated successfully using SecurEnvoy, they are directed to
    https://<AD FS proxy URL>/adfs/ls/?wa=wsignin1.0&wtrealm=<site URL>&wctx=rm%3d0%26id%3dpassive%26ru%3d%252f&wct=<UTC timestamp>
    which results in a 302 redirect to 
    https://<AD FS proxy URL>/adfs/ls/auth/basic/?wa=wsignin1.0&wtrealm=<site URL>&wctx=rm%3d0%26id%3dpassive%26ru%3d%252f&wct=<UTC timestamp>
    This should return a 200, but instead returns a 302 redirect to the same URL, until stopped by the browser.

    It seems that you have already asked in another forum: http://serverfault.com/questions/658095/adfs-2-1-redirect-loop-on-login
    Simply remove the installed update and contact Microsoft to report the issue: http://support.microsoft.com/ContactUs
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • How to find the database details from server audit specification with successfull login group?

    Hi,
    We have created a server audit for successfull logins.When we read the audit file using
    sys.fn_get_audit_file we find that all the fields related to the databases
    ie database_principal_id,database_principal_name,database_name are either 0 or null.
    Is there a method to find out to which database the login is accessing from the server
    audit specification of successfull login group.Although the logins are reading and writing
    data to the databases why there are no details of the databases?
    Thanking you in advance,
    Binny Mathew

    Hello Binny,
    The logins are used to connect to the instance and the access to the databases is performed via database users. So, once you connect to the instance via your login, the server level audit takes this action, records it, but without caring to which databases
    you want to connect after that. 
    Unfortunately there is no similar action group on the database audit specifications, that can track which user connected to the DB, except if you are using contained databases in SQL 2012.
    Probably you can share why you need such information and if there is something else specific that you wish to achieve, so we can propose a different solution/audit configuration.
    Regards,
    Ivan
    Ivan Donev MCT and MCSE Data Platform

  • Homepage keeps getting redirected to gmail login page

    i startup ff to my homepage www.google.com/ig and it keeps getting redirected to gmail login page. I unistalled most recent addon's but problem not solved. doesn't matter what version of ff i install.

    To access the iGoogle page you need to be logged on to the Google server. <br />
    You need to make sure that you keep the Google cookie(s) that identify you.
    Such details are stored in a cookie.
    * Create an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
    * In [[Private Browsing]] mode all cookies are session cookies that expire if that session is ended, so websites won't remember you.
    * Do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    Clearing "Site Preferences" clears all cookies, images, pop-up windows, software installation, and password exceptions.
    See also:
    * http://kb.mozillazine.org/Cookies

  • Login dynamic redirect extension

    so my problem is that every time i test it i get redirected
    to the wrong password page i'm sure that my passwords are correct
    etc
    this is the code that the extension generates

    that should be rather easy with ADDT:
    <br />
    <br />1. add another varchar field to your user_table to store the user´s "own specific page" URL, say "my_page"
    <br />
    <br />2. on the page that´s been defined as "default redirect on success" (say, success.php) in ADDT´s "Login Settings", define a query like e.g. "SELECT my_page FROM user_table WHERE user_id" equals the kt_login_id session variable.
    <br />
    <br />3. in case the session isn´t detected
    <i>(it usually isn´t except for ADDT´s lists)</i>, add...
    <br />
    <br /><?php<br />session_start();<br />?>
    <br />
    <br />on top of "success.php"
    <br />
    <br />4. now simply make sure that your PHP redirection will contain the recordset value, like this:
    <br />
    <br /><?php<br />header('Location: '.$row_queryname['my_page'].'') ;<br />?>
    <br />
    <br />Never tried this myself, but to my understanding this should work -- if not, I´ll eat my hat, promised ;-)
    <br />
    <br />Günter Schenk
    <br />Adobe Community Expert, Dreamweaver

  • Dynamic Redirect

    Can you someone help me create a login based on a mysql table that includes username password and url, and the user is redirected based on their username?
    Do I create some kind of recordset base on the username? I tried to do it and the page does not even load. Can I get some kind of theory of this can be achieved using the ADDT? Or maybe even a walk through.

    Hi,
    I think this should be rather easy :: on the standard "redirect after login" page defined in ADDT´s Control Panel, you´d probably just need to...
    1. add on line 1 to make sure that page will detect the ADDT session variables
    2. add a query which will check the url against the currently logged in user´s "id" -- example:
    "SELECT url FROM user_table WHERE id" equals the session variable "kt_login_id"
    3. immediately after the query, and preceeding the pages "DOCTYPE html PUBLIC etc etc" html stuff, add a standard PHP redirection script, example:
    now the somewhat tricky part will be to add the query´s "url" value to that redirection URL -- means you will have add...
    $row_queryname['url'];
    after e.g. the abovementioned URL´s trailing slash. As this approach is meant to add a dynamic variable inside an otherwise static value that´s already starting/ending with apostrophes (''), you assumingly will have to embed the variable within additional apostrophes as well, like this:
    does this work ?
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Redirect to Portal Login page from portlet

    We have lots of applications on the portal and many of them need the logged in user information to provide the right display context. For example, "My Notes" where notes are stamped with the user's login id. Our portlet applications show exception messages when the user id is unavailable. Pressing a refresh button takes them to the portal login page.
    Does anyone know how to redirect to the portal login page? Here is how I would like it to work: A user has the application up beyond the session timeout period and does something that causes the page to submit. At the application server we look for the logged in user ID which is missing due to session timeout and we send them to the portal login page.
    Thanks! Mike

    Hi James,
    <br />
    <br />I fear this isn´t possible to do with ADDT, as it will - when using its Restrict Access To Page behaviour - always redirect to the page you specified in the Control Panel.
    <br />
    <br />However you can help yourself with a simple custom PHP redirect script
    <i>(place it @ @ line 1 of your document)</i> which checks whether the "kt_login_id" Session Variable is set, and if it´s not set, redirect to a different login page:
    <br />
    <br /><?php<br />if (!isset($_SESSION['kt_login_id'])) {<br />header('Location: http://www.example.com/directory/login.php') ;<br />}<br />?>
    <br />
    <br />Hint: users who login via a different login page will still be redirected to ADDT´s default login page when logging out
    <br />
    <br />Cheers,
    <br />Günter Schenk
    <br />Adobe Community Expert, Dreamweaver

  • Urgent: how to Logoff and redirect to the login screen from WebDynpro appli

    Hi,
    i want to logoff and redirect to to the login page.
    i use WDClientUser.forceLogoffClientUser([_"what should be the code here"_]);
    If i pass null as the url, it will terminate and default message will be shown (it will not go to logon screen)
    I want to logoff and navigate to customize login page.
    I don't know from which server the request is from dev, Qa or some other system.
    I can use WDClientUser.forceLogoffClientUser("http://dev"); but it doesn't work with QA.
    i will be really appriciate we suggest me regarding this. Its urgent please send for responce ASAP.
    Thanks
    NSM

    Hi,
    use the following code to get the url
    String hostName = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getServerName();
              int port = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getServerPort();
              StringBuffer url = new StringBuffer("http://");
              url.append( hostName );
              url.append(":");
              url.append(port);
    WDClientUser.forceLogoffClientUser(url.toString());
    Regards
    Ayyapparaj

  • When I login to ANY website, I get redirected to that login screen?

    Ok, so this problem came along just a day ago. Heres what happened.
    It started with comments not showing up on YouTube. Then, when I would try to login it would say "login failed, try again". For my Google account I couldn't login either. When I tried to login to my Google account it simply redirected me to the login page, and it doesn't say wrong password either. There is no error message. This happens with all other websites! I'm surprised discussions.apple.com let me in. Phew. But other than that, all of the other websites wont let me log in!! Its really annoying and I'm starting to think my accounts/internet was hacked.
    THINGS I'VE TRIED
    -Switching browsers
    -Resetting my browsers and emptying their caches.
    -Completely resetting my computer with a hard reset.
    -I did a zero-pass overwrite on it too.
    note- the hard reset may have not worked completely tho, my computer originally has 640 gb of memory. But when i reset the computer I still only had 582 left. Thanks for the help.
    I ALSO WAS ABLE TO LOGIN ON MY MOMS COMPUTER WHO IS RUNNING THE SAME INTERNET AS ME! ALL MY ACCOUNTS WORK ON HER LAPTOP. THE ONLY DIFFERENCE IS THAT I'M RUNNING OFF OF A WIRELESS ROUTER IN HER ROOM.

    Hi Jesse,
    Sounds like you've developed a Permissions problem or Keychain problem on your Mac.
    Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions.
    In Finder do a get Info on...
    /Users/YourUserName/Library/Keychains/
    Folder, do you see any strange rights there?
    Open Keychain Access in Utilities, use Keychain First Aid under the Window Menu item, then either check the Password under that item, change it, or delete it and start over.
    Then See if this helps...
    Mac OS X 10.4 Help, I forgot a password in my Keychain
    http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh1960.html
    Resetting your keychain in Mac OS X...
    If Keychain First Aid finds an issue that it cannot repair, or if you do not know your keychain password, you may need to reset your keychain.
    http://support.apple.com/kb/TS1544

  • When I connect to the hotel wireless, it takes 2 or 3 minutes to be redirected to the login page

    Hi all,
    I have a problem with my Firefox 4 beta: when I connect to the hotel wireless, and I start the browser, I should be automatically redirected to the hotel's main login page.
    In FF4b I get 2 error messages (attached) and I am not redirected immediately... it takes 2 or 3 minutes to be redirected.
    If I don't want to wait I have to start IE, make the login, and then get back to FF4b.
    I believe this situation is connected with the "Test Pilot" and/or the "sync" function of FF...
    Any ideas about what I should do? Any setting I should change?
    Thanks,
    Tozé
    Link to error messages:
    [http://dl.dropbox.com/u/12096987/FF4b_Error1.jpg Error message #1]
    [http://dl.dropbox.com/u/12096987/FF4b_Error2.jpg Error message #2]

    Hi Prakashkarthikeyan,
    If you are having an issue with your cellular data connection not linking up properly, I would suggest that you troubleshoot using the steps in this article - 
    iPhone cellular data connection issues
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Invalidating the ADF session and redirecting to EBS login screen

    Hi ADF team,
    I am developing an application which is being accessed from eBusiness Suite (EBS), using ADFX function. It has a global Logout link. When the link is clicked, two things should happen.
    1. the ADF session that is running on WLS server should be killed.
    2. I should be redirected to eBusiness Suite login page.
    This is what I am doing and I am getting error(s).
    1. Created a Container jspx page and embedded a task flow in it.
    2. Embedded a jsff into task flow.
    3. In JSFF created a global link called Logout.
    4. Set the action property of Logout link such that it calls a function in the AMImpl. (I confirmed, the function is being called)
    5. In the function invalidate the ADF session using following code.
    HttpServletResponse response = ((HttpServletResponse)ADFContext.getCurrent().getEnvironment().getResponse());
    HttpServletRequest request = ((HttpServletRequest)ADFContext.getCurrent().getEnvironment().getRequest());
    HttpSession sessionADF = request.getSession();
    sessionADF.invalidate();
    return "EBSLogin";
    6. Now, EBSLogin control flow leads to a URL View component that has the URL property set as "www.oracle.com".
    --Using this approach I get the error: adfc-14000: view port id ****** is invalid
    -----Thus need help with this error. Is there a better way to accomplish this ?? What am i doing wrong?
    Also, I have a question on how to set the URL property of 'URL View' component. I set it to #{pageFlowScope.MainPageBean.testLogoutURL}. testLogoutURL is a function that returns string. But I do get an error at run time, mentioning that the property cannot be NULL. Thus seems like the way I am doing it is not totally correct. Please advice.
    Thanks & Regards,
    Anoop

    on top of my head
            FacesContext fc = FacesContext.getCurrentInstance();
            ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
            HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
            HttpSession session = (HttpSession)ectx.getSession(false);
            String redirectURL = (String)session.getAttribute("ebizRedirectUrl");
            if(redirectURL!=null){
              int oa_html = redirectURL.indexOf("OA_HTML");
              finalRedirectURL = redirectURL.substring(0, oa_html);
              finalRedirectURL = finalRedirectURL + "oa_servlets/AppsLogin";
            if (session != null)
            session.invalidate();
            try {
                response.sendRedirect(finalRedirectURL);
                fc.responseComplete();
            } catch (IOException e) {
                e.printStackTrace();
            }

Maybe you are looking for

  • All PA & OM Infotypes in one IDOC

    Hi All, Could anyone please let me know if there is any standard idoc which can cater to all the PA & OM infotypes. I searched for some some of the HRMD* idoc types which supports either PA or OM infotypes , but not completely. Any help is really app

  • Help? How do I access a Windows Drive Structure?

    Hi: I found a sample file system browser example but it didn't really work. It ran fine but coudn't see any drives, directories or files. How can my Java app. learn what drives are on the client's computer? Where do I start, to get a tree of all the

  • Most Recent SMS Messages Hidden After Restore

    So, I was having trouble with by browser and decided to do a wipe and restore. Turns out the problem was with the google page that i was trying to load, which the browser didnt like very much.  Anyway, I backed up my data right before using the secur

  • Iphone 4 is frozen and will not restart, reboot, restore

    iphone 4 is frozen and won't shut off.  the sleep and/or home buttons don't work either.  Tried to restore from itunes, but because my phone has the "find iphone" function on, it won't let me (you have to turn that function off on the iphone - quite

  • DNG conversion fails sporadically with Get Photos From Camera

    Camera: Canon 40D and 5D XP SP2 CS3 Bridge 2.1.1.9 ACR 4.4.1 DNG Converter 4.3.1 Importing my files to Bridge using the Get Photos from Camera (GPFC) option results in sporadic DNG conversion failure. There's no pattern, just a lump of files that don