User Login - go to previous URL not working

Hi
I have a user login set up using the DW server behaviour.
The problem I have is that the redirect to the previous url doesnt work and always directs a successful login to the default successful login page.
The problem seems to revolve around this part of the code:
                if (isset($_SESSION['PrevUrl']) && FALSE) {
                    $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
                header("Location: " . $MM_redirectLoginSuccess);
and in particular the use of the && FALSE check.  I can see from my debugger that the value of $_SESSION['PrevUrl'] is properly set to the previous url.  If I remove the && FALSE check the login works as I would expect and redirects to the previous URL.  However, as this is 'out of the box' DW code I am concerned in case removing the && FALSE check may be doing some harm.  I have to admit I dont understand the logic of what the && FALSE part of the IF statement is actually checking for.
Any advice and/or reassurance that by removing the && FALSE is not doing any harm or exposing me to any risks would be appreciated.
Thanks

session_start() is set
As I step through the code and watch the variables I can see that the value of $_SESSION['PrevUrl'] is equal to the previous url but $MM_redirectLoginSuccess remains as the default success page.
If I remove the && FALSE element from the IF statement, the value of MM_redirectLoginSuccess is changed to the the value of $_SESSION['PrevUrl'], which is what I want.
So my question is, what is the && FALSE bit doing and why is it there and do I need it?

Similar Messages

  • After install my user login account and password is not working

    I took my Mac book Pro to apple store for repair after it shuts down. They told me the laptop is formatted so I have re install all softwares i.e Mac office, iTone, etc. Unfortunately after downloading the softwares, I couldn't complete the installation because the computer can not recongnise my admin login password ( step required to complete installation). I did not change my passward and userlogin information? Could you please advice?
    Thank you

    Resetting User Password in Lion, Mountain Lion & Mavericks
    Boot into your Recovery Partition by hold down the Command and R keys whilst booting.
    When the Recovery screen appears, go to the Utilities menu and open Terminal.
    In Terminal, type:
    resetpassword
    ...a small app will open and allow you to choose the user for whom you want to change the password. If you are the admin, be certain that you choose your admin user. Type in your new password twice and give yourself a good hint. Click OK (or Done or whatever) and reboot, enjoying the use of your new, hopefully memorable, password.
    Good luck,
    Clinton

  • Cannot log in to Nationwide internet banking in Firefox. I get the front page but Login says internet banking is not working. Next screen says it's ok and sends you back to the first screen, which says it isn't. Works throughInternet explorer

    Question
    Cannot log in to Nationwide internet banking. I get the front page but Login says internet banking is not working. Next screen says it's ok and sends you back to the first screen, which says it isn't. Works throughInternet explorer

    That issue can be caused by corrupted cookies.
    *https://support.mozilla.org/kb/Cannot+log+in+to+websites
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"

  • Web Gallery, previous/ next not working consistently

    First time I've seen this:    next and previously are not working good. Some work in the gallery, some don't.
    Reboot Firefox, some different ones work, some dont. It's worrisome. I'm sending this to people- any tips?

    .Mac email can be set up two different ways on the iPhone. For "Send to Web Gallery" button to appear when clicking on the action button while viewing a photo, you must have your .Mac email set up as IMAP. This is the default setup for a .Mac email account.
    If you take the time to manually set up your .Mac email as POP, then you will not have the "Send to Web Gallery" option and you will be unable to successfully email into your web gallery even if all else is set up correctly.
    To check to see how you have .Mac email set up on your iPhone, go to the Home Screen, tap Settings, tap Mail, tap your .Mac account name, tap Advanced, move down on the page, and make sure you see "IMAP Path Prefix" setting (it can be blank and does not need to be changed). If the "IMAP Path Prefix" is there, then you do indeed have your .Mac email set up as IMAP on your iPhone.
    If you do have it set up as a POP account, you can delete that mail account by selecting the red Delete Account button when viewing your email account as listed in Settings.
    To add your .Mac email account as an IMAP account, from the Home Screen, tap Settings, tap Mail, tap Add Account..., tap .Mac, and fill out the fields with your information, tap Save and it will verify access to your .Mac email account.

  • After having SSO user password through url not working

    Hi guys,
    We have an Institutional portal and BW portal to publish reports. Before the SSO was configured we had some UrlIViews where we fixed a user and password through the url, ie:
      http://myportal.net:50400/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=TMP01&sap-client=200&j_user=user1&j_password=pwd1
    It worked fine.
    Recently SSO (with SapLogonTickets) has been configured between the two portals.
    I have my same user on both servers and SSO its working, even though the URL sends another user, I log on to the bw portal as my own user.
    Some people do not have a BW user, so when they click the url, a login is presented with a default user (user1) and password in blank ready for input. I guess because it couldnt do a SSO.  The problem is that if they introduce the password(pwd1), or even if they change for another valid username and password, the portal rejects all attempts to log in.  Such as if tried to log in with an non existing user (using the SSO). 
    Is there a way override SSO when there is no user, such as it is working in the same portal but with BW R3?
    Thanks,
    help will be aprecciated
    DGF
    Edited by: David Guerra Farias on Apr 8, 2008 7:30 PM
    Edited by: David Guerra Farias on Apr 8, 2008 7:31 PM

    Hi Benjamin,
    I have not solved it yet as I'm delving into Flash Remoting to BC4J issues. ARRRRGGGGG!
    However, I'm thinking that there may be a solution using "mod-rewrite processing" within the httpd.conf file. If I can use Regular Expressions to change the "case" in mod-rewrite then I can probably fix it. Have to dust-off my Apache Docs.
    http://httpd.apache.org/docs/misc/rewriteguide.html
    BG...

  • Application URL not working properly

    We have a custom application hosted on weblogic8.1 cluster. And this is in production environment.
    What we observed was, I am using FireFox browser and works fine for me. And I noticed it did not work a few days ago only once. However, most of the other users use IE6.0 and seems not able to access this URL. So some tried using IE 7.0 and worked fine for some time. But, the problem persisted very often as few can and others cannot.
    Can anybody tell me what could be the problem or should I be modifying any files in weblogic server.
    This is working pretty fine in testing environement.

    Thank you very much for the hint, though I have not tried your suggestion. I tried a little more and found the following way might be simpler - using "java.url.*" and "java.io.*". Just a simple test:
    ============================
    URL url=new URL("ftp://usrname:password@hostname/localDirectory/filename.txt");
    InputStream is=url.openStream();
    BufferedReader in=new BufferedReader(new InputStreamReader(is));
    String line;
    while((line=in.readLine()) !=null) { System.out.println(line);
    ==========================================
    Of course, other data format would work in a similar way.
    Cheers,
    ljiang001

  • Upgrade of our 10.4.11 laptop to 10.5 is accomplished and we now need to upgrade Quicktime and iTunes; however, the user name and password is now not working after the upgrade to 10.5.

    Object is to sync address and calendar between laptop with Max OS 10.4.11 and iPhone. Upgrade of our 10.4.11 laptop to 10.5 is accomplished and we now need to upgrade Quicktime and iTunes; however, the user name and password for the laptop is now not working after the upgrade to 10.5., though it was working prior to the upgrade, for file sharing.

    @ BDAqua > I tried your suggestion but no luck. holding opt+command just gave me a blue screen and it rebotted, pushing the disk out of the drive. Yes, the macbook has 1 gb of ram. I realize that the min req. call for 2 gb of ram so i've got an order in for another dimm to put into the machine. Thanks for your suggestions.
    @ a_brody > Yes. The machine was plugged into a power source. The disk promts you to do that and i recall aspect this form other installs. Thanks for the reminder tho! ( btw your second post is like greek to me man!) 
    @ Kuncklesmac > You're right about Snow Leopard being an upgrade from Leopard. I'm aware of this. And yes previously i've been told by Apple that I needed the Box Set (not the family pack.  i am using the family pack for OS Snow Leopard) to upgrade my 10.4.11 mac - they never mentioned adding ram but i figured that out on my own and an apple specialist recommended it when i purchased Snow Leopard and confirmed that I coul duse the Snow Leopard to upgarde from Tiger (10.4.11). I've also read extensively (as i said above) that it isn't necessary (always) to buy the box set. Several 10.4.11 users report having upgraded using the Snow Leopard upgrade disk only (not the Box Set) without trouble on intel macs (also see the apple link i posted). So i'm just ondering how they did it and i cannot. 
    Thanks fo rall yor help!

  • MobileMe Gallery URL Not working

    All of my MobileMe Gallery URL's in iPhoto do not work and contain '(null)' as in:
    http://gallery.me.com(null)/username/100016
    If I remove '(null)' it works fine. Anyone else have this problem?
    Thanks!

    First delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your User/Library/Preferences folder, republish the galleries and see if the URL gets changed.
    If not create a new gallery with the same photos from one of the existing galleries, name it the same as the old one, delete the existing gallery and publish the new one. See if that will generate correct URLs. The URL may change so you may have to re-announce it to your friends.
    OT

  • Hyperlinks to external URL not working

    Hi folks.  I exported a CS4 indb to epub, opened it with Digital Editions, and clicked on a hyperlink.  The link activates my browser, but does not go to the actual page.   It just brings my browser to the front and displays whatever page was previously there.  It is not opening in a new tab  or in another window that is in the background.  So, as a test, I exported one of the book's indd files to pdf and clicked on the hyperlink.  This worked fine, it activated my browser AND displayed the correct page.  Any thoughts how to get Digital Editions to go directly to the URL, not just merely switch to the browser which shows whatever page was last opened?  Thanks!

    Also, just tested it in Calibre, and it worked.  Looks like a Digital Editions issue.

  • Next-Previous Do not work Properly for lengthly dynamic Where Clause

    I have created a View object using Expert Query mode
    with following Query:
    SELECT LIC_SYS_ID,
    LIC_NAME,
    TERRITORIES,
    LANGUAGES,
    MEDIA,
    SEGMENT_NAME,
    CHANNELS,
    ACTIVITY_CD,
    LS.LIC_SHORT_NAME,
    LS.LIC_AKA_NAME
    FROM V_LICENSEE_SEARCH LS
    ORDER BY LIC_NAME
    Then at run time the following Where Clause staments get added by in JSP based on the users criteria
    wClause = "(ACTIVITY_CD = '" + activityStatus + "')"
    + " AND " +
    "(LIC_NAME like '" + licenseeName + "%' OR " +
    " LIC_SHORT_NAME like '" + licenseeName + "%' OR " +
    " LIC_AKA_NAME like '" + licenseeName + "%' ) "
    In this case the DataScroller does not work properly It DataTable traves only one setp when I click the "Next" link, But if I use the Drop down list of the Scroller its works fine.
    Secondly the "Next" "Previous" links of the DataScroller work fine if I use only one stmt in the WhereClause ex: "ACTIVITY_CD LIKE 'A%'".
    Can anybody help me with this, Is this a limitation of DataScroller/DataTable/DataSource tags why does it not work??
    Please help me its urgent.
    Thanks a ton !!

    Thx for the reply, I did try your suggestion It did not throw any exception. Here is the log messages after enabling jbo Debug.
    [391] Reusing a cached session application module instance
    [392] Getting a connection for internal use...
    [393] Creating internal connection...
    [394] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    wClause : (ACTIVITY_CD = 'A') AND (LIC_NAME like 'A%' OR LIC_SHORT_NAME like 'A%' OR LIC_AKA_NAME like 'A%' )
    [395] Column count: 10
    [396] ViewObject : Reusing defined prepared Statement
    [397] $$added root$$ id=-2
    [398] Application Module failover is enabled
    [399] Getting a connection for internal use...
    [400] Creating internal connection...
    [401] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    [402] <AM MomVer="0">
    <cd/>
    <VO>
    <VO Sz="8" St="8" Def="com.sophoi.ipls.media.tv.businessentities.licensee.LicenseeView" Name="licenseeView">
    <Wh>
    <![CDATA[(ACTIVITY_CD = 'A') AND (LIC_NAME like 'A%' OR  LIC_SHORT_NAME like 'A%' OR  LIC_AKA_NAME  like 'A%' )]]>
    </Wh>
    <Or>
    <![CDATA[LIC_NAME ASC]]>
    </Or>
    </VO>
    </VO>
    </AM>Long postings are being truncated to ~1 kB at this time.

  • User status profile settings on WBS not working

    Hello,
    We have a User status profile on WBS element which has various statuses in it allowing different business transactions when that particular user status is set.
    There is one user status NPC in that status profile which should disallow assignment or confirmation on maintenance work order. Now the status previous to NPC status allows assignment or confirmation of orders. So after a order is assigned to the WBS and the WBS user status is changed to NPC when we try to confirm order on this WBS in NPC status sytem allows order confirmation.
    Why is system allowing this inspite of the status profile config says confirmation is disallowed in NPC status. I have checked the object types in the status profile config and maintenance order is also included in that but still its not working. Please help in solving this issue, its critical.

    The business transactions disallowed under NPC status are as below,
    Acct. Assignment order/Project
    Actual activity Allocation
    Assignment Order/WBS
    Confirm Order
    Goods Movement
    Material Purchase Order
    Material Purchase Requisition
    Post Goods Issue
    But orders can be assigned in the status before NPC, but once NPC is set system does not allow assignment of new orders which is correct. But system allows confirmation of already assigned orders. Please help we do not want any order confimation after NPC is set.

  • Web Cache 'Ping URL' not working.

    Hi,
    I have recently installed a Webcache clustered pair which sit in front of OHS which reverse proxys back to OUCM/Web Logic, my OWC version is 11.1.1.2 and am looking for some clarification of how the Ping URL actually works in Web Cache.
    When OHS is shutdown, Webcache detects the service is down and prevents it from servicing requests, however it will not mark the service as down when I intentionally set ping URL to a page that does not exist generating a 404, will Ping URL polling only mark a server as being down if a 500 error is generated?
    Something else I would like clarification of is 'Ping Interval', I have set this to be aggressive at '1' however I do not see any polling traffic or see any hits in OHS log that indicate polling of the Ping URL is taking place.
    Thanks in advance,
    Mark.

    Not sure I need any update to this now, I've just read through the help section 'help/edit_add_appserver.htm' and can see that a 404 is not considered a failure and also that the server only starts to poll when the failover threshold has been reached.
    This would explain why the server was not being marked as down, although I'm still not sure why I do not see the polling traffic in Apache logs but I can live with that :)
    Cheers,
    Mark.

  • I cannot access my idisk, I used the password I used to log into my user name but it is still not working. Please help!

    I tried several times since I bought my macbook pro to log into my idisk. My password for my user name does not work. I am clueless about what to do next.

    You need to turn the phone off and leave it in dry rice for 3-5 days. Then, plug it in and charge it for about 15 minutes and then try to turn it on. If it doesn't work at that point, it will be time to get a new phone.

  • Some URL not working in XI 3.1

    Hi,
    URL below which is working in XI R2
    http://serverName/businessobjects/enterprise115/desktoplaunch/opendoc/documentXML.jsp?cmdP1=reportname01wid*&token=servername%40715252JKRqBkrcZktGziHM715251JzcHaz61ShIdevCP&cmd=askPromptView&cmdBlock=all&cmdP2=lsSP22%3D1%26lsSP21%3D1%26lsSP20%3D1%26lsSP9%3D0%26lsSP8%3D1%26lsSP7%3D1%26lsSP6%3D1%26lsSP5%3D1%26lsSP4%3D1%26lsSP3%3D1%26lsSP2%3D1%26lsMRMDB%3D582%26lsSP1%3D1%26lsSP19%3D1%26lsSP18%3D1%26lsSP17%3D1%26lsSP16%3D0%26lsSP15%3D0%26lsSP14%3D0%26lsSP13%3D1%26lsSP12%3D1%26lsSP11%3D0%26lsSP10%3D1%26lsMCustomer%3D18946%26sWindow%3DNew%26sOutputFormat%3DPDF
    We recently migrated to BOXI 3.1 but the New URL i have created for XI 3.1 which is not working and show blank page and display NULL on the page..
    http://servername/PerformanceManagement/scripts/documentXML.jsp?cmdP1=reportname01wid*&token=servername%40715252JKRqBkrcZktGziHM715251JzcHaz61ShIdevCP&cmd=askPromptView&cmdBlock=all&cmdP2=lsSP22%3D1%26lsSP21%3D1%26lsSP20%3D1%26lsSP9%3D0%26lsSP8%3D1%26lsSP7%3D1%26lsSP6%3D1%26lsSP5%3D1%26lsSP4%3D1%26lsSP3%3D1%26lsSP2%3D1%26lsMRMDB%3D582%26lsSP1%3D1%26lsSP19%3D1%26lsSP18%3D1%26lsSP17%3D1%26lsSP16%3D0%26lsSP15%3D0%26lsSP14%3D0%26lsSP13%3D1%26lsSP12%3D1%26lsSP11%3D0%26lsSP10%3D1%26lsMCustomer%3D18946%26sWindow%3DNew%26sOutputFormat%3DPDF
    Can anyone please help and give me some idea ?
    Thanks in advance.

    Hi RMTuck,
    I'm sorry to hear you are having these issues with your iPad after a recent update. If you continue to have issues sending or receiving iMessages, you may find the troubleshooting steps outlined in the following article helpful:
    If you can't send or receive messages on your iPhone, iPad, or iPod touch - Apple Support
    Regards,
    - Brenden

  • Link to URL not working in RH X5

    Good morning,
    A client asked me to include a hyperlink to an internal site of theirs.  After I gave them the WebHelp, they said the link doesn't work (I can't test it here as I work offsite without access to their intranet).  They said there is a space missing which would account for it not working.  The problem is I copied and pasted the URL into the project from the client's email.  Here is the URL copied from the client's email to me - you can see the 2 spaces between ACH and Forms.  :
    http://sharepoint.myfirstnet.com/TreasuryManagement/ACH%20%20Forms/Product%20Information/T raining/ACH_SEC%20Explained.doc
    When I right-click on the link in my topic and check the link properties and when I look at the code on the True Code tab, I can see the 2 spaces (not the code for the spaces, of course, but you can tell there is an extra space) so assumed all was well. Yet on the client's end there is only a single space.  And if I copy the link from the True Code tab in RH and past it here, for example, or into an email, it comes out like this:
    http://sharepoint.myfirstnet.com/TreasuryManagement/ACH Forms/Product Information/Training/ACH_SEC Explained.doc 
    The double space has been replaced with a single space.  I can't explain how or why that would be changed after I put in the hyperlink.  Is there something about HTML or RH in particular that doesn't allow double spaces so removes one?
    Thanks for any help.
    Diane

    Have you tried %20%20 in the code rather than spaces?
    Just a guess.
    See if that works in RoboHelp's viewer.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

Maybe you are looking for

  • SAP PM-MRP RUN

    Dear All, Can you tell me How to run MRP in sap PM & How it is configure. Thanks & Regarsd Vishal

  • Want to change network type on huawei e220 ?

    Any one can help,I use huawei e220 on my macbook pro,but how can I change the network type 3G only,3G Prefer,Gsm Only,Gsm Prefer ?

  • Toplink in near realtime systems

    Hi, The idea is to have toplink commit db transactions to a in-memory-db and then async process posts these transactions to the oracle DB. What is the best way of doing this? We are in the financial market. Are there any utils/apis in toplink which c

  • Add movies to iPad

    I have a work iPad synced to a computer in it. It is not synced to my iTunes - however I can add apps and music by using the add to option in iTunes I wonder if anyone knows how to add movies as this option does not seem to be present

  • Adobe Slate

    I am interested in Adobe Slate, but have two questions about it.  Is the product available for the desktop computers?  And does it collect any stats about how many people visit the "stories" or site?