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

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/

  • 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

  • Action Extension - Dynamic redirect

    Hi,
    I need to have an authorization policy on Access Manager that perform
    a redirect to an url that changes based on user information.
    I have taken a look to the Novell Access Manager Developer Kit. Anyway,
    it looks like I can only define permit and deny action without a
    destination url. Is it true?
    Does exist a way to redirect the user to a specific url from an action
    extension?
    Thanks. Best regards,
    Alessandro
    afolli
    afolli's Profile: http://forums.novell.com/member.php?userid=6964
    View this thread: http://forums.novell.com/showthread.php?t=432170

    Hi All,
    the Technical Support confirmed that there is currently no way to
    achieve this.
    If you need a similar feature, you can create another Request For
    Enhancement in the Requirements Portal ( www.novell.com/rms ).
    Best regards,
    Alessandro
    afolli;2073871 Wrote:
    > Hi,
    > I need to have an authorization policy on Access Manager that perform
    > a redirect to an url that changes based on user information.
    >
    > I have taken a look to the Novell Access Manager Developer Kit. Anyway,
    > it looks like I can only define permit and deny action without a
    > destination url. Is it true?
    >
    > Does exist a way to redirect the user to a specific url from an action
    > extension?
    >
    > Thanks. Best regards,
    >
    > Alessandro
    afolli
    afolli's Profile: http://forums.novell.com/member.php?userid=6964
    View this thread: http://forums.novell.com/showthread.php?t=432170

  • 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

  • Redirecting a web-service client dynamically?

    I have a development server, and a real world server. I also
    use the web service wizard to general stubs for consuming web
    services else where. The WSDL is identical on both my dev server
    and my real world server, but I can't figure out how to dynamically
    redirect my application to the real world servers, leaving me no
    option but to delete the local references and add the references to
    the real world server prior to release.
    Anyone know how to dynamically repoint the auto-generated
    classes?

    I handle urls and pathing by passing root urls into my
    applications via flashvars in the html wrapper. That allows a lot
    of flexibility, both in development and in production.
    However, I do not Use the generated code and do not know how
    to prevent the autogeneration process from overwriting manual
    changes. Do you regenerate a lot?
    Tracy

  • Assigning an application to different sound outputs

    Question: Is there a way to assign an application to use a sound output options in the mixer or another Win7 application?
    I have installed Win7 RC 32bit.  I have headphones and speaker outputs on my system.  Both are detected and both can be assigned to a working default sound choice.  I am unable to assign an applications sound output to a certain outputs or change them.
    The only way I can make a sound application work through the speakers if the headset is assigned the default role is to go into sound management, then assign the speakers to default and then restart my application.
    Desired: I would like an application profile to default to the assigned role from the mixer.  The settings could be permanent or temporary.  If the 1st choice is not available, use the alternate working or (default).  The sound should dynamically change or at the very least keep that profile with that application until changed.
    In the mixer, I should be able to rt click on the application in the mixer and manually assign it to a sound device.  This option should be assigned to a default target to play ONLY if the desired is not available.  Possible options can be, just one time, or have this device handle sound if available.
    Hardware:  Asus Rampage 2: Gene motherboard, 6GB Ram, GTX 275 graphics, Seagate 1.5TB.  Drivers auto discovered on install and appear to be functional.

    Hi TKCDAC,
    As you may noticed, great improvements have been made in Windows 7. Applications can realize Stream Routing via the new Core Audio APIs. Windows 7 has the ability to distinguish between communication devices and all other audio devices. It is now possible to have both a Default Communications Device that is separate from the Default Audio Device. The Default Communication Devices will be used for PC based communication like web chat or VOIP, and the Default Audio Device will be used for everything else. Stream switching enabled dynamic stream switching based on the default device. If the default audio device is disabled or unplugged, Windows automatically tries to determine the next default audio device and will dynamically redirect the audio to that new device.
    For instance, if you would like to play the audio via headphone when using communication applications such as Windows Live Messenger, we can simply right click the volume icon in the system tray, click Playback Devices, right click the headphone listed and then choose Set as default Communications Device.
    For more information, please refer to the following articles:
    http://msdn.microsoft.com/en-us/library/dd756612(VS.85).aspx
    http://louisgale.blogspot.com/2009/08/live-messenger-and-default.html
    Also, based on my test, certain application such as Windows Media Player has a sound output option. To change the settings, please open Windows Media Player, click Tools, Options, click Devices tab, double click Speakers in the Devices list, pull down the Select the audio device and then choose the device you would like to play the music from Windows Media Player, click OK. We may play another song in the play list to take effect.
    In the meantime, I will forward your suggestions to our Product Group. Please be assured that any improvements in the product are based on users' requirements.
    Thanks,
    Linda

  • Multiple backend systems in ESS CATS Webdynpro scenario - challenge

    Hello Everyone!
    For one of our customers we have the following challenging situation with the ESS CATS Webdynpro scenario:
    System Landscape:
    ERP 6.0 HR Backend System
    ERP 6.0 FI/CO Backend System
    EP 7.0 with already running ESS scenarions
    Our customer actually uses the ESS CATS Scenario for collecting wage types into infotyp 2010. Now, additionally, they want to
    use ESS CATS for an internal cost allocation scenario. This means, that the data from the CATS Webdynpro have to be redirected to the FI/CO backend system instead of the HR system (because of a missing standard ALE scenario for this case). The JCO SAP_R3_HumanResources points to the HR-System. Is there a way to dynamically redirect the system assignment depending of the used CATS scenario. Out of the CATS Profile we can conclude which system should be assigned. I red a lot about dynamic system resolution in the SAP Library, but it seems not to be the right solution for this issue - because I need to know the CATS profile for the descision.
    Any hints would be great. Thanks in advance!
    Cheers,
    Harald

    Rob Christopher
    First of all, I introduce myself: it’s Oscar Garcia de las Heras, from Madrid, Spain.
    I can check in SCN and Linkedin your high expertise in ALE, ESS and SAP.
    We have a delicate situation in my current project; I would like to ask your help.
    The situation is this: we have different machines in HR and FI, and are trying to implement Travel Management through the SAP Standard Portal.
    TM settings is in the FI machine, but ESS calls to the HR machine.
    We have 2 ideas:
    -A, differentiate the different services of the Portal, so specific HR processes will call to a HR machine and others will call to a FI machine.
    -B, set the ALE processes to duplicate HR information in FI, and Portal will call just FI machine.
    We prefer first idea; would you recommend us?
    Thanks a lot for your time

  • QoS Cisco SCE8000, Caching Cisco IronPort WSA, Loadbalancing Cisco ACE solution

    Hi all,
    Our customer is a mobile operator. They need a integrated solution for caching, QoS and Loadbalancing in a combination. From my understanding of their goals, they need to providing stable and speedy broadband access as well as good user experience by the differentiation service offering. They need to classify IP traffic and prioritize and control of content-based services for a given subscriber while transparently and dynamically redirect and load balance the application level classified of IP traffic to a proxy caching server regardless of protocols such as http, https, ssl, ftp, flv, mms and rstp, sip, p2p....
    Attached pls find the RFP and technical specification for Caching and QoS.
    I appreciate your expertise to consult me whether I can propose for them the Cisco ACE standalone appliance or ACE engine module for 7600/6500 for loadbalancing, Cisco IronPort WSA for caching and dual Cisco SCE8000 for QoS as an integrated solution. Is this solution feasible/workable and where could I find the same reference or solution design or technical guidance on this?
    Thanks a lot and would like to hear from you at the soonest!
    Best regards,

  • Detection of wap client

    Hello.
    I vant to make a servlet that dynamically redirects to a jsp, that is specific to the client type. Eg if the client is a wap browser the servlet shall redirect to a jsp, that generates wml tags.
    Can anyone tell me hov the servlet can detect if the client is a wap browser or a html browser?
    thanks
    Henrik

    In your servlet you could check the headers the wap browser sends you.
    For example the ACCEPT header fiels sent by wap browsers are
    accept:text/vnd.wap.wml, text/vnd.wap.wmlscript, image/vnd.wap.wbmp
    Regards
    BG

  • How to redirect to a page dynamic

    Hello everyone,
    I have the code bellow in public void init() of a fragment page.
    My problem is how to call a page in a dynamic way... if the codigoUsuario is null
    try{
    if (getRequestBean1().getCodigoUsuario()!=null){
    getTb_usuarioRowSet().setObject(1,
    getRequestBean1().getCodigoUsuario());
    }else{
    //code here to go to Login.jsp
    }catch(Exception e){
    log("ErrorDescription", e);
    error(e.getMessage());
    Please someone... help me
    thank�s
    Gustavo Callou

    I have already solve this problem with
    this.getExternalContext().redirect("/Patrimonio/faces/Login.jsp");

  • REDIRECT JDBC URL WHEN USING DYNAMIC JDBC CREDENTIALS SO NOT HARDCODED

    I have taken over an application that uses row-level security and ADF (using
    dynamic JDBC Credentials). I have been able to set the internal_connection to
    a JDBCDatasource, but cannot set the Connection Type in the Oracle Business
    Component Configuration to a JDBCDatasource. When I do, I receive errors that
    tables are not found. When I set the value back to a JDBC URL, everything
    works fine again.
    I am looking for a solution where the userid and password are not hardcoded in
    the BC4J.xcfg or a way to redirect this information, as we change our system
    passwords every nighty days. Otherwise, I will have to redeploy the
    application every nighty days.
    I did not create this application, but I am sure that you could simply follow
    the "How to Support Dynamic JDBC Credentials" article. From that point, you
    will probably be where I am, where I have the internal_connection set to a
    JDBCDataSource and working properly, but cannot set the Connection Type to
    anything where the userid and password will not be hardcoded or cause failure.
    I wanted to let you know that I have
    found the updated How to Support Dynamic JDBC Credentials
    (http://www.oracle.com/technology/products/jdev/howtos/bc4j/howto_dynamic_jdbc.h
    tml) and was going to run through the "Advanced: Supporting Dynamic JDBC URLs",
    but once I was done keying in
    env.remove(ConnectionStrategy.DB_CONNECT_STRING_PROPERTY); I received a
    depreciation message on the DB_CONNECT_STRING_PROPERTY. (Note: I am coding in
    JDeveloper 10.1.3, so this may be depreciated as of then, but the ADF Libraries
    for JDeveloper 10.1.3 are on our Oracle 10gAS 10.1.2 server.)
    I thought maybe this would resolve my issue, but I can't be sure as the
    deprecation message leads me to believe that this solution may not be viable in
    the future.
    UPDATE
    =======
    The article you are referencing is definitely an older version.
    There is a newer article for 10g at:
    http://www.oracle.com/technology/products/jdev/howtos/10g/dynamicjdbchowto.html
    Please see if that helps.
    I have already reviewed this article.
    In fact, I have reviewed many versions of this document. I have not seen one
    created yet for 10.1.3 though (especially without JSF as our 10.1.2 AS server
    will not support it). I need to find an example or documentation that shows
    how we can keep from having the JDBC URL stored in the BC4J.xcfg or a way to
    use dynamic JDBC credentials with a JDBCDataSource. We do not want to store
    the userid and password in the application, rather, we would like to setup
    something that can be configurable from the application server.
    I think we need to use the dynamic JDBC credentials because we are using the
    row-level security, where we setup a database context for the user and only
    allow certain records of a database table to be returned to the browser based
    on that context.
    Might there be a way to still use the JDBCDataSource?

    I understand that the user provides the userid and password and that these values are setup using the Configuration class.
    However, when I am to deploy the ADF Business Module with my application, I have to specify either a JDBC URL or a JDBC DataSource in the Oracle Business Component Configuration.
    When I use JDBC DataSource, the code does not work properly, almost like the user's credentials are not used for the connection (I get errors like table or view does not exist).
    When I use the JDBC URL, the bc4j.xcfg stores a reference in the JDBCName attribute to a ConnectionDefinition in the same file. It is in this tag of the bc4j.xcfg where the userid, sid, and password (encrypted) is stored and used when retrieving the initial context of the ADF business components.
    It is these values that I want to have stored else where so that the application does not have to be redeployed in order for the password (or sid, or other connection information) to be change.

  • Dynamic pages and redirection to framesets

    Is it possible to send dynamic data to a page that occupies one frame in a frameset............and then to do a redirection from that frame to the frameset as a whole?  I was hoping my dynamic data would then appear in it's correct place in the frameset.  But it doesn't seem to work.
    Instead it embeds the entire frameset within the one frame where I sent the dynamic data originally.  So I end up with a frameset inside a frameset.  Very frustrating
    dm225

    your recordset query returned no results...
    do you have a error trap for no records returned like
    <%
    if not Recordset1.eof then
    %>
    <img src="<%=Recordset1("dphotos")%>" alt="">
    <%
    else
    response.write "Something went wrong...." &
    err.description
    end if
    %>
    this will help you diagnose errors
    or
    <%
    if not recordset1.eof then
    NXB=1
    end if
    %>
    <img src="<% if NXB=1 then response.write
    Recordset1("dphotos") %>" alt="">
    Mike K
    "Genxbyapinch" <[email protected]> wrote in
    message
    news:ed2ldu$r0$[email protected]..
    >
    >
    > I have been searching for help ( more than a few days)
    but have not yet
    found
    > anything that works.
    > My database connection is ok
    > My record set comes up with data ie test is okay
    > I have followed the instructions for putting data on
    results page ie
    dragging
    > and inserting, primarily I want to
    > show images from my access 2002, but anything other than
    that would be
    good.
    > I did read that access doesnt support binary data but on
    a sample database
    in a
    > course I was doing they used access for displaying
    dynamic content so I am
    > !confuSed!.
    >
    > I have Dreamweaver 8, I am using OBDC, I have enabled
    permissions, my
    server
    > brings up my home page with search form ok.
    >
    > detailed error: 800a0bcd, eigher BOF is True or the
    current record has
    been
    > deleted , It then gives me the line# I have many books
    but none on asp and
    > vbscript so am floundering,
    > <img
    src="<%=(Recordset1.Fields.Item("dphotos").Value)%>"
    alt="">
    >
    > Thanks for any help
    >
    >
    >

  • Dynamic Page Redirection

    i have a login page that authenticates the user and then stores his information in the session bean.
    The issue is,
    for other page i have a script that checks whether the session bean value for a user are null , (which means he has still not logged in)
    on this condition returning true, i want to redirect the user to the login page.
    How do i do it?
    Also read as:
    How does one dynamically call pages without any user action ?

    Hi!
    You can add verification to init() or prerender() function of other page.
    Thanks,
    Roman.

  • Dynamic form "Cancel" redirect  problem in frames - bugfix?

    My question: Is there a "long run" down side to my implementing this modification to style.js?
    The below post by Ionut:MX Division Support Specialist worked for me as a solution to a current form "click cancel" redirect navigation problem:
    When a DWtoolbox dynamic form wizard form is placed on a page within frames, clinking on cancel does not return a user to the list that sent them to the form. The user is sent somewhere else.
    Begin Ionut post-------------
    If you don't need to add extra parameters to the "Edit" button, you can solve the redirect problem by editing the "/includes/skins/style.js" file and replace:
    nxt_list_edit_link_form(this, myinput.previousSibling.href);
    with:
    nxt_list_edit_link_form(this, a.href);
    End----------------------
    Thanks Ionut for the tip and anyone in support for letting me know if this is a safe mod for the long run,
    Steve M

    Hi Marny,
    Hello Steve. I am new to Adobe & very confused. You seem to grasp the program very nicely, please help Me?
    I´m not not Steve, however -- what problem do you have exactly, and is this problem related to the "Adobe Dreamweaver Developer Toolbox" extension or related to Dreamweaver ?
    If it´s related to ADDT, please describe your problem by starting a new thread -- if it´s related to Dreamweaver, please post your questions in the general Dreamweaver forums.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

Maybe you are looking for

  • How to show description instead of code on a view page?

    I'm new so this is probably basic, but I didn't find an answer when I tried searching. I'm using JDeveloper 10.1.3.3, ADF Business Components, ADF Faces. In my application, I have both view pages and edit pages (some users will only have read access)

  • Mac Pro 3,1 (early 2008) RAID card hangs at startup

    Hello, I have a Mac Pro 2.8Ghz Quad Core (early 2008) with 10GB RAM and 512MB VRAM. I have noticed that the Mac Pro RAID card hangs at startup for RAID volumes.  It seems to start okay with a single boot drive (have used both WD Raptor 150GB 10K and

  • How to write nested cursor for Adv. Collections dunning letter query

    I am trying to write a query for Advanced Collections duninng letters. Some accounts for this customer have invoices for more than one currency. In order to find all of the invoices this query works: select to_char(sysdate, 'MM/DD/YYYY') currsysdate,

  • Specifying ' character in an array of characters

    How do I edit my code so that I can include the ' character in my list of characters without getting the error below? (The character referred to is delim[12] in my array) blazes > javac Words.java Words.java:44: empty character literal delim[12] = ''

  • Logitech Keyboard problem

    Since I updated from tiger I hace a weird problem.... Suddenly my USB cordless keyboard (Logitech cordless desktop ex ex 110) changed a few keys by it's own it's not very annoying but I usually use them. The given keys are < for º, and my keyboard la