Page restriction setup help

Hi I have an admin section I of course want to restrict site visitors from gaining access to. I have a login form, a login error template, application template, and a logout template. I also have a restrictAccess.cfm template that has a cfif condition. I can login in and everything redirects the way it is suposed too. I can logout as well. I can type the wrong username and password and get redirected to the loginError page, but I can still type in the URL to my adminHome page and it doesnt restrict my access. I have a cfinclude for the restrictAccess.cfm at the beginning of the adminHome page, but that doesnt seem to do anything.
here is my restrictAccess.cfm code.
          <cfif SESSION.login EQ "No">
          <cflocation url="loginForm.cfm" addtoken="no">
          </cfif>
This is the cfinclude on my adminHome.cfm
          <cfinclude template="restrictAccess.cfm">
and here is the application.cfm
          <!--- Code gets executed with every page request!! --->
         <cfapplication name="login" sessionmanagement="Yes">
         <cfparam name="SESSION.login" default="No" type="any">
I tried using the restrict access tool in DW, but didnt have much luck. Can someone please give me some pointers as to why this isnt working properly. Thanks so much!

Hi Bob, thanks for the info! I did go over those tutorials and pretty much have the same code as suggested when using a database to handle login info here is my loginAction code:
<cfparam name="FORM.username" default="1" type="any">
<cfparam name="FORM.password" default="None" type="any">
<!--- Check user --->
<cfquery name="rsLogin" datasource="rlbulbs">
SELECT userName, passWord
FROM rlbadmin
WHERE userName = '#FORM.username#'
AND passWord = '#FORM.password#'
</cfquery>
<cfif rsLogin.Recordcount GT 0>
  <cfset SESSION.login = "Yes">
  <cflocation url="adminHome.cfm" addtoken="no">
  <cfelse>
  <cflocation url="loginError.cfm" addtoken="no">
</cfif>
Again. the restrictAccess.cfm is the page that should load before my adminHome page using the cfinclude. The restrictAccess page sets the SESSION.login to "NO"
<cfif SESSION.login EQ "No">
<cflocation url="loginForm.cfm" addtoken="no">
</cfif>

Similar Messages

  • Account search F4 Help from BP Relationship page restricts the search

    Hi ,
    Account search F4 Help from BP Relationship page restricts the search to corporate accounts.
    The business partner category maintained for the relationship type in Tcode buba is organization and person.But the search is restricted to corporate accounts only.
    Thanks & Regards,
    Sanila

    Hi Shobhi,
    Can you provide some more details about the system ?
    Are you using transaction BP or CRM Web UI ? Also, which BBPCRM SP are you on ?
    This problem does not exist in higer SPs of CRM, and a related problem existed in Web UI that the F4 search did not consider the role based customizing. This has been corrected in SAP note 1297760.
    My guess is that everything is working fine in your system. Probably, you have also maintained some role based restrictions in BUBA customizing. Now, possibly, the allowed roles are only valid for corporate accounts, that's why you only see organizations in the search.
    E.g : say u have a relationship category ZBUP03 - Employee rel
    Now, you have a role restriction that partner 2 must be only role BUP003 = employee.
    Now, according to role customizing, employee can only be person.
    Thus, when you search for BP's to assign to rel category ZBUP03, you will only see persons.
    Probably, this is the scenario in your system.
    Hope this helps.
    Cheers,
    Rishu.

  • Cs4 in design page setup help cm, mm, inches change

    hi all
    i dont know if i am being totally stupid but whaen i go to start up an new document in indesign cs4 i can sem to change my page dimension option to cm, inches or mm it comes up like  - 51p0 x 66p0 etc
    can someone tell me how to change this so i can make my pages in mm, cm or inches?
    thank you for your help
    here is a a screen shot

    ahhhh
    thank you
    Date: Sat, 22 Aug 2009 06:37:29 -0600
    From: [email protected]
    To: [email protected]
    Subject: cs4 in design page setup help cm, mm, inches change
    With no files open, edit your preferences and change units to inches.
    That said, InDesign will convert units so if you type 11 in, even though the document uses picas, it will convert the inches to picas for you.
    Bob
    >

  • Site setup help...

    Hi -
    I am new to using CS5 and I am having a few different problems.  I am not sure but I think they all stem from improper setup.  I had used dreamweaver mx 2004 to set up a few sites back in 2004-5 so I am am somehwat familiar with setup, however, besides trying out CS5 on a new computer, I also now have a QNAP 459+ NAS which I am using as the remote server (as opposed to a site through go daddy or other).
    I have PHP and mysql running on my NAS, and I have also installed Xampp on my computer.  (first off I was not sure that I needed this because I have a server (NAS), but I decided to install so because I was pretty sure that my local machine needed apache running in order to parse php scripts before they run on the server)  In XAMPP control panel, I get the following:
    Where it says apache is started but up above it does not say that it is running.  When I try to view PHP code in dreamweaver from the local site, it just shows the little PHP emblem and does not process the code.  It does process php if I access the page from the server by typing the address in a browser.  It does not process at all in dreamweaver.
    I also get the following errors in dreamweaver which I am not sure but I think are related:
    "dynamically-related files could not be resolved because your credentials don't allow file activity on the server"
    and
    "An unknown error occurredwhile discovering dynamically related files. Retry."
    I am not sure if I have multiple problems or just one which is causing all these symptoms, but any advice/help would be greatly appreciated!
    Thanks,
    LilPauly8211

    Lost prior settings? How? Why?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Vince Howard" <[email protected]> wrote in
    message
    news:f1s810$g7u$[email protected]..
    >I can not connect and upload to the web site thru
    Dreamweaver and need some
    > setup help. I can not determine what I am doing wrong. I
    have lost all my
    > prior
    > settings, new computer. Can someone help me with the
    local and remote
    > settings.
    >

  • I can only print 1 page can somebody help

    I can only print 1 page can somebody help
    sl

    I have the same problem with my HP C6380 MY8CJ880F6. For me it is +80% of what I am printing I only get 1 page and has to print the rest 1 by 1. The problem is 6 month old and I have tried almost everything except the right solution ;-}
    Setup Windows 7, 64 bit (Danish). Wireless communication.
    I have tried reinstalling, use HP diagnostics and a lot of other things. Diagnostics says everything is fine. Microsoft Fix It diagnostics says the same about the Windows 7 printer support functions.
    My other printer a HP Designjet 111 runs perfect. When I am out of office I use other printers no problems. But the HP C6380 will in most applications especially Acrobat Reader only print 1 page at a time.
    I have tried to change the printer into factory settings that sometimes do the trick for the Microsoft Office 10 products installed but not for Acrobat. Most of my documents are PDF so either i get the fixed or I will have to invest in another printer.
    Any body with a solution ?
    BR Erik

  • (Again): The page is setup in "mm" but still appearing in "inch"! why?

    (Again): The page is setup in "mm" but still appearing in “inch”! why?
    I wanted the “preview” part of the “print” dialogue” box to be in “mm” but sounds not to respond to the settings made and still appearing in “inch”! why?
    Why such simple setting is very difficult in the Acrobat?
    Thank you for the help,
    Best
    Jamal

    Thank you for the prompt answer. This is quite helpful. My issue is resolved now.
    Your time and effort are very much appreciated.
    Best
    Jamal

  • All website went "Not Found HTTP Error 404. The requested resource is not found." and the "Firefox cannot load websites but other programs can" page is not help

    ''dupe of https://support.mozilla.org/en-US/questions/928117''
    all website went "Not Found HTTP Error 404. The requested resource is not found." and the "Firefox cannot load websites but other programs can" page is not helping in any ways

    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *http://kb.mozillazine.org/Error_loading_websites
    You can try to reset (power off/on) the router.

  • Setup & Help buttons stopped working

    I recently upgraded wireless network from WEP to WPA.  Lost wireless connectivity to 3310 All-in-One, and now Setup & Help buttons don't work so I can't connect to new network.  What happened?  Is there a way to setup new network without accessing Setup menu on device?

    Get the latest software for your printer from the "Support & Drivers" link at the top of this page.  Run the software, making sure there is no USB cable attached.  Choose "Network" or "Wireless" connection type when it asks.  Plug in a USB cable (temporarily) when it asks.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Page Sentry Setup - Oracle ApEx 4.1.1

    Hi,
    Hoping someone can please assist or point me in the right direction but I am creating a new Page Sentry setup in Oracle ApEx 4 based on the following link:
    Updating Page Sentry for APEX 4.0 Upgrade:
    http://zetetic.net/blog/2010/12/10/updating-page-sentry-for-apex-40-upgrade.html
    I have pretty much just used what has been provided from this link with a few minor changes but my question that I cannot figure out why it is happening is that in MS IE8, when I fire up my app, it all starts up fine and and sets up my APP_USER and APP_SESSION fine but what I have found that, when I go to a new tab in IE8 and start up another session for this very same APP_ID, it is assigning the same APP_SESSION as the previous session, which is not what I am after from the Page Sentry.
    Could someone please assist with what I need to change this pl/sql code, so that a new session id is always generated when starting up a new IE8 tab in the same browser window.
    Thanks.
    Tony.

    Hi Tony,
    If you are using OAM, why would you want each tab to have a different session?
    (OTN PDF on OAM - http://www.oracle.com/technetwork/developer-tools/apex/learnmore/apex-oam-integration-1375333.pdf )
    If I'm not mistaken . . . your problem with Apex 3 is now solved in Apex 4 (unless you implemented a broken page sentry function), because the session id in the url is backed by a cookie. If the session id in the url doesn't match the credentials in the cookie, it cancels the session.
    At the same time, since browsers share cookies between different tabs, the database can't distinguish between page calls from one tab from page calls from another tab - because they pass the same cookie. This is a browser issue, not an apex limitation. I don't think its possible to have each tab be treated as a separate session, unless you disable the cookie, and that leaves you open to the problems you had with Apex 3.
    I keep saying "if I'm not mistaken", and that's because I've got 0 applications under my belt (well, I have a websheet, but that doesn't count). I've been studying page sentry functions on-and-off since November 2011, and got nowhere. Fortunately, I discovered how to do what I wanted to do without using a page sentry function.
    Here are the most helpful links I found - most of the code are variations on a theme, and they reference functions that are not well documented.
    I found Christian Neumueller's second post on this page very enlightening - Re: APEX 4.1 Login page kills existing session cookie
    I might implement this - http://www.oracle.com/technetwork/issue-archive/2009/09-may/o39security-101079.html
    You've probably seen Joel Kallman's post - http://joelkallman.blogspot.co.uk/2010/10/custom-authentication-scheme-for-oracle.html
    Here's one about NTLM, which isn't what you're looking for, but its another example of a page sentry function - http://jastraub.blogspot.co.uk/2008_03_01_archive.html
    There is a little bit about session management and the login process in this pdf - http://www.sumneva.com/c/sumneva/presentations/APEX%20Behind%20the%20Scenes.pdf - all of which is very interesting.
    Tak

  • I can not longer send email from my .me email. in outlook 2010 on my PC. I can still recieve emails fine. I have not changed my settings at all. I have however tried all the settings i can find on the support pages. PLEASE HELP

    I can still receive icloud ( ME email address) emails fine. I have not changed my settings at all. I have however tried all the settings I can find on the support pages. PLEASE HELP. Nothing has changed. This suddenly just started happening around a month ago. To frustrate me apple does not seem to have a support email or any method to contact them with this issue to do with their email product. I have spent ages going through the apple support sites and I keep getting asked for an apple product to mark it against. I have no apple product as I am using a PC but I am accessing and using their email product. Is there even a phone number I can call? Surely there is a support area for their Email server issues. Can anyone help? It is driving me mad and causing me major issues. My outlook is Outlook 2010 on a windows 8 PC. As I have said it worked fine then one day decided to stop sending emails.
    Thanks for your help.

    Hi - this problem is discussed here:
    https://discussions.apple.com/thread/5375046?start=0&tstart=0

  • SOMETHING GONE AWRY WITH A BUNCH OF GIFS ON MY PAGE. PLEASE HELP ME.

    Please, this is a situation which has me nervous. A friend sent me one of those funny GIF things. It is about six different cat faces and the cats move in different ways depending on what kind of music it is.
    I tried to get these GIFs onto my iWeb webpages. I had a difficult time, published one cat face and saw it on Safari on my website. It was a cat with a head bouncing to be bop music. Then I tried to upload all the other cat heads. I botched the job because it ended up with about six of them piling up on each other. Anyhow, I had a bunch of these square windows of cat faces with different kinds of earphones and I thought to myself, "Heh, wouldn't it be funny to see what THAT looks like on a webpage," and I hit the publish button.
    As i could see the progres bar advancing I got to thinking how this could muck up my website (I am a neophyte), so I hit the Cancel button. After that, I deleted the page upon which all those GIFs of cats faces bobbing up and down had been placed. I thought that that was the end of it.
    Then I went to my email to do something else. Suddenly out of the corner of my eye I could see movement and I realized that it was that notification saying that my page had been published. SO apparently I had not cancelled that page after all. I clicked onto the Visit Me Now button and saw up in the Navbar, a page titled BLANK. The page had bobbing cat head GIFs strewn all over it and I panicked. I closed Safari, went to iWeb to see if I could really get rid of those cat GIFs.
    The bottomest line is that I had already deleted that page! How would the cats still be dancing on that blank page if I deleted it? I checked all my other pages and they are OK. How on earth could those dancing cat GIFs be bouncing around on my Safari website when they are nowhere to be found on my iWeb pages?
    Please, help me figure this out because I am not comfortable knowing that a whole bunch of GIFs are on my Safari website, maybe screwing everything up by whatever GIFs might be able to do if there were enough of them on a page. Sort of like overload, too any appliances plugged into the wall, etc.
    I am nervous, and although this could seem funny on the outside, here in my place it is nerve wracking.
    — Lorna in Southern California
    Thu, Aug 10, 2006 12:52 AM PST

    All right. The cat GIFs are gone now from my website. I had earlier hit the Clear cache button, but apparently I had to hit it about 10 more times plus go to sites outside of the website. I left to do something else and now that I checked my website on Safari, that Blank Page is not there and the GIFs are gone.
    I'm glad that's over.
    — Lorna in Southern California

  • How can I sync my photo contents in iPhoto on my iMac to my new iPAD's iPhoto?  I follwed all the instructions on manuals for both iPAD and iTunes re syncing, but I cannot find "phone button" under Device name on iTunes page. Please help!  Thanks!

    I follwed all the instructions on manuals for both iPAD and iTunes re syncing, but after physically connecting iPAD with iMac with USB or via WiFi I still cannot find "phone button" under Device name on iTunes page. Please help!  Thanks!
    I have been creating a photo book using a lots of photographs on iPhoto, and then I took another photos by using new iPAD which I want to integrate with the original album/book on iMac. I was able to import them from iPAD's iPhoto to iMac's iPhoto.  However I cannot import or transfer or sync anything from iMac's iPhoto to that of my iPAD. 
    So my iPhoto page on iPAD contains only 3 or 4 newly created albums, and no other info.  That means no syncing....
    I am supposed to be able to work on this project on either of these iPAD and iMac, correct?
    I am puzzled.  I appreciate for your advice and help.
    Thank you!

    It doesn't appear under the iPad device on the left-hand sidebar of iTunes, you need to select the iPad device on the sidebar and then select the Photos tab on the right-hand side of iTunes e.g.
    And then on the right-hand side :

  • How can I add a new Template to My Templates in Pages? I've read most of the discussions on the subject but it doesn't work for me. By the time I reach the Templates folder, I only see templates for Numbers and not for Pages. Need help, please.  Thanks

    How can I add a new Template to My Templates in Pages? I've read most of the discussions on the subject but it doesn't work for me. By the time I reach the Templates folder, I only see templates for Numbers and not for Pages. Need help, please.  Thanks

    Si vous avez utilisé la commande Save As Template depuis Pages, il y a forcément un dossier
    iWork > Pages
    contenant Templates > My Templates
    comme il y a un dossier
    iWork > Numbers
    contenant Templates > My Templates
    Depuis le Finder, tapez cmd + f
    puis configurez la recherche comme sur cette recopie d'écran.
    puis lancez la recherche.
    Ainsi, vous allez trouver vos modèles personnalisés dans leur dossier.
    Chez moi, il y en a une kyrielle en dehors des dossiers standards parce que je renomme wxcvb.template quasiment tous mes documents Pages et wxcvb.nmbtemplate à peu près tous mes documents Numbers.
    Ainsi, quand je travaille sur un document, je ne suis pas ralenti par Autosave.
    Désolé mais je ne répondrai plus avant demain.
    Pour moi il est temps de dormir.
    Yvan KOENIG (VALLAURIS, France)  mercredi 23 janvier 2011 22:39:28
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • How do I restrict F4 help?

    Hello experts,
    I want to restrict F4 help so that only 3 valid values will be shown when users press F4 on my parameter. How do I do that?
    Again, thanks a lot guys and have a nice day!

    Hi Viraylab,
    Use this code and in the select statement put your condition to select only the 3 records that you want to display in your F4 help.
    REPORT  ZHELP                             .
    TABLES : MARA.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS : P_MATNR(10) TYPE C.
    SELECTION-SCREEN END OF BLOCK B1.
    DATA : BEGIN OF ITAB OCCURS 0,
           MATNR TYPE MATNR,
           END OF ITAB.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.
      SELECT MATNR
             FROM MARA
             INTO TABLE ITAB
             UP TO 10 ROWS.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD        = 'MATERIAL NUMBER'
          DYNPPROG        = SY-REPID
          DYNPNR          = SY-DYNNR
          DYNPROFIELD     = 'P_MATNR'
          VALUE_ORG       = 'S'
        TABLES
          VALUE_TAB       = ITAB
        EXCEPTIONS
          PARAMETER_ERROR = 1
          NO_VALUES_FOUND = 2
          OTHERS          = 3.
    Regards,
    Mukesh Kumar
    Message was edited by: mukesh kumar

  • I'm getting this message: "Firefox prevented this page from automatically redirecting to another page." but unchecking the box for "warn me when websites try to redirect or reload the page" has not helped. I'm using Firefox 3.6.3 on Mac OS 10.6.3. M'aidez

    Can't load Google Calendar. I'm getting this message: "Firefox prevented this page from automatically redirecting to another page" but unchecking the box for "Warn me when websites try to redirect or reload the page" has not helped. I'm using Firefox 3.6.3 on Mac OS 10.6.3. It's not reported as a generalised problem in Dashboard. Google Calendar opens and works fine on my 12" PowerBook G4, but this is a recent problem on my G5 13" MacBook Pro. Mayday!
    == URL of affected sites ==
    https://www.google.com/accounts/ServiceLogin?service=cl&passive=1209600&continue=http%3A%2F%2Fwww.google.com%2Fcalendar%2Frender%3Ftab%3Dmc%26pli%3D1&followup=http%3A%2F%2Fwww.google.com%2Fcalendar

    No I'm not using NoScript, but I'm pleased to report that the problem got resolved by deleting the original bookmark, logging in again, opening Google calendar, then bookmarking it again.

Maybe you are looking for

  • I want to set up my videos on my iPad mini by artists, not songs. can someone help me?

    i want to set up my videos on my iPad mini by artists, not songs. can someone help me?

  • I migrated all of my photos from my PC to my mac but I can't find them on my laptop!?

    Hi I hope someone can help me. It took hours on end to successfully migrate my photos and documents from my Windows PC to my new MacBook. (I'm a professional photographer) When The Migration Assistant was completed, I closed the window and went to my

  • Drop box thinks I am offline

    Hi, I noticed my drop box folder wasnt saving the work I had done so decided to use a clean up app to delete it, then I went to and downloaded it again. Now I get this???

  • Finding C/Mgr Process Name on Unix

    Gurus, We have three environments on one HPUX box (PROD, TEST, DEV). Two of them are on 11i. One of them is now on 12. In the past, to determine the concurrent manager process, I grep for fndcpmbr, and also grep on the mountpoint. The reason why I gr

  • Nokia Xl Query

    Dear Sir, I Wish To Purchase Nokia XL, But My Some Following Query About It, Please Give Solution Of It. 01)  The phone has low screen resolution and low processing power So It Problem or Not       (E.g.: RAM7 68MB And Pixel Density Is Very Low 187 p