How to secure one page not entire application?

Hi there,
I'm looking for some guidance on how to secure individual pages on my site. I've read a number of articles discussing creating a login using the Application.cfc. The thing is this approach locks down the entire site. I only want to secure a page. In my scenario, if the user hasn't logged in, and goes to a profile.cfm page, they will be asked to login. Once they login, they will then be directed to the profile.cfm page.
Any and all advice would be greatly appreciated.
Thanks.
Novian

Hi, Novian,
An option that come directly to mind is to check for the specific page to be locked down in onRequestStart of your Application.cfc.
This approach is relatively easy to implement but may not be the best approach (don't know how it might affect performance or something else). Basically, use a conditional in your onRequestStart method to see if the page being requested by the user is the page that needs to be secured. Something along the lines of:
<cffunction name="onRequestStart">
     <cfargument name="target_page" />
     <cfif target_page is 'super-secure-page.cfm'>
          <!--- security stuff --->
     </cfif>
</cffunction>
There are, of course, other options but this was a quick and easy one that came right to mind.

Similar Messages

  • Can I just setup my pages for just one page not the whole document?

    I want to change my page to landscape but just one page not all document how can I do it.
    thank you

    May you take time to search for the keyword 'landscape' in the existing threads ?
    This question was asked and responded many times.
    Yvan KOENIG (VALLAURIS, France) dimanche 20 juin 2010 20:39:31

  • HOW TO SHOW ONE PAGE AT A TIME

    Does anybody have a clue how to show one page at a time? I clicked Facing Pages in the Inspector and 2 columns of pages showed up. Now, I can't get it back to just one page showing up at a time. There must be a fix, but I don't' want to spend days on this. Many thanks.

    Frank,
    At the bottom left of the page, click on the zoom percentage, then select One-up from the menu.
    -Dennis

  • How to send one email to entire group.

    Looking for reference on how to send one email to entire group.

    I think you're confused about some basic Java programming techniques.
    There are two obvious ways to do this.
    1. Call the addRecipient method in a loop.
    2. Collect all the recipients in a List, convert it to an array, and call addRecipients.

  • How to connect one page using button and by link in BSP

    how to connect one page using button and by link in BSP

    hi,
    use on 'onclick' functionality.
    1. In layout, onclick = 'NEXT_PAGE' of the button
    2. Capture the event in onInputprocessing,
    DATA: event_id TYPE REF TO  cl_htmlb_event.
    case event_id.
    when 'NEXT_PAGE'.
                navigation->goto_page( 'URPAGE URL' ).

  • How can run one JSF 1.1 application in Glassfish v2?

    Hello
    How can run one JSF 1.1 application in Glassfish v2?
    I need deploy one JSF 1.1 application in Glassfish v2. It's possible?
    Paulo

    in Glassfish v2 I have the messege error:
    java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
         at com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:250)
         at com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:106)
    [#|2007-08-14T10:49:16.438-0300|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=21;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=416049de-0564-4eb6-8d07-ac8f65f5f7fa;|ApplicationDispatcher[/lilya2] PWC1225: Allocate exception for servlet FacesServlet
    java.lang.RuntimeException: WEB5003: Exception in handleAfterEvent.
         at com.sun.web.server.J2EEInstanceListener.handleAfterEvent(J2EEInstanceListener.java:320)
    but in Tomcat 5.5 it work without problems.

  • If I choose any i-works draft, I only can get one page not the complete draft

    If I choose any i-works draft, I only can get one page not the complete draft

    Mousing shows all the available pre-formatted page available in each template to give you an idea what is there, but you only get one, sometimes 2, when you create a new document. All of the other pages can be accessed via the Insert menu. Insert > Sections in word processing & Insert > Pages in page layout.
    If they all loaded when you opened a template, you'd have to go through & delete the ones you don't want & duplicate the ones you want more than one of.
    FYI: the name of the program is iWork, no 's' & no hyphen

  • How do I switch views on my laptop to see only one page not three

    how do I do this, don't how I switched from one page to three

    You can re-download your apps and ibooks purchases via your purchase history in iTunes on your computer (assuming that it's version 10.3+), and if you are in the USA then you can also re-download music I think - more info here http://support.apple.com/kb/HT2519
    For music that you ripped from CDs or bought from a source other than iTunes then, assuming that you made/maintained one, you can copy them from your backup - and backups are relatively easy to maintain, so there is no reason not to have one (especially as content is occasionally removed from iTunes so isn't always available for re-download). Otherwise there may be third-party programs that can copy them off the iPad, but you can't do it via iTunes - this post from a year ago was about iPod/iPhone to computer utilities but some might work with the iPad : https://discussions.apple.com/message/11646661?messageID=11646661&#11646661 .
    If you've got content in other apps that you want to copy back to your computer then you might be able to do via the file sharing section at the bottom of the iPad's apps tab in iTunes, or they might have wifi transfer capability.

  • How do I just print one page not all of the pages in the document?

    When I print the document, I usually just want to print just the first page and not having to print all of the pages which is a waste of paper.

    Hi debed,
    I understand you're wanting to print particular pages of a document not the entire thing. I will certainly do my best to assist you with this.
    It will depend on what program you're using, but you should see something similar to the image below allowing you to select the current page you're on, or pages 1-3 for example.
    If you're still not sure, I will just need a bit more information to try and get more specific instructions.
    1. What model of printer are you using?
    2. Are you using Windows or Mac on your computer?
    3. What program are you printing from that you'd like to select just the one page?
    Hope this helps! Happy Holidays!!
    Please click “Accept as Solution ” if you feel my post resolved your issue, as it will help others find the solution faster
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    **MissTeriLynn**
    I work on behalf of HP

  • How to combine two pages (not files) into one long vertical page

    Is there a way in Acrobat 9 Pro to combine (concatenate) say two 8.5"x11" pages and create a single 8.5"x22" page?
    Right now I'm having to do this by importing one page into Photoshop, extending the canvas, and pasting in the second page into the extended canvas space.  Very kludgy. While this works, saving the resulting PDF (even after removing the option to preserve editability in Photoshop) still results in a file which is a whopping 2.5MB in size as compared with around 25KB for the original PDF file which was spanning 2 pages.
    Ultimately what I'm trying to do is to be able to view a long document which was created in MS Word 2007 and then saved as a PDF, in a web browser by scrolling, without having page breaks.  Trying to increase the page dimensions is MS Word 2007 prior to creating the PDF worked to a point but Word 2007's maximum page length is 22 inches and as luck would have it, the document requires about 23 inches in length.
    I've tried using the custom page setting under the crop tool in Acrobat 9 but I can't seem to get the modified page dimensions to be accepted.  Acrobat 9 seems to accept the input and then nothing changes with the page's dimensions.

    A simple way to accomplish the job, though not recommended is to print the 2 page file to a new PDF with multi-up (assuming you select vertical rather than horizontal locations) and adjust the paper in the Adobe PDF printer to be 8.5X22. At least you might give it a shot. Some variation, along with rotation possibly, might work.

  • How to Save HTML page in Apex application into our local Windows Box

    Hi,
    I am having one HTML page in my Apex Application. I want to download this page into my Local Windows machine. How to do this?
    Thanks
    Yash

    I am having one HTML page in my Apex ApplicationWhat did you mean by this ?
    <li> If you meant an application page, then they are anot stored as html file anywhere as the page that you see is generated at the run time only, however you can can save that run time page , but its of not much use.
    <li> If your intention is to save/backup an apex page, go to the page and export it . This generates a SQL file which you can import into any other apex application and recreate that apex page.
    <li> You can also export the entire application as a single file too.

  • How to share Global Page across multiple applications

    Hi,
    I have APEX 4.2 via pl/sql gateway, Oracle 11gr2 DB and using theme 24.
    I have about 40 applications in 1 workspace and I need to create a global page that is going to be the same for each app. One way of doing this is I can manually do the change 40 times but I'm looking for an easier way.
    If you look at the packaged app "Dynamic Sample" you would notice a left sidebar which acts like a menu. Basically I want to do the same but just image each item on the sidebar belongs to a separate application.
    I have app1 which has the login and left sidebar navigation. Each option on the sidebar list would call a page on app2 to app40 but I need to retain the sidebar when displaying the page from a different app.
    If I tried to imp a global page I get an error that the application ID is different.
    If I tried to copy the global page to another app it changes the type to a navigation form which prevents the list from coming up for every page on the app.
    Thanks in advance!

    kvsinfo wrote:
    Hi,
    I have APEX 4.2 via pl/sql gateway, Oracle 11gr2 DB and using theme 24.
    I have about 40 applications in 1 workspace and I need to create a global page that is going to be the same for each app. One way of doing this is I can manually do the change 40 times but I'm looking for an easier way.Does the page have to be secure? If not can you create a new application without a login, put the "global" page there, and link to it from the other applications? Is there another way to put a generic page somewhere you can get to it outside Apex?
    >
    If you look at the packaged app "Dynamic Sample" you would notice a left sidebar which acts like a menu. Basically I want to do the same but just image each item on the sidebar belongs to a separate application.
    I have app1 which has the login and left sidebar navigation. Each option on the sidebar list would call a page on app2 to app40 but I need to retain the sidebar when displaying the page from a different app.
    If I tried to imp a global page I get an error that the application ID is different.
    If I tried to copy the global page to another app it changes the type to a navigation form which prevents the list from coming up for every page on the app.
    Thanks in advance!

  • How to register ADF pages in Oracle Applications 11.5.10 or 12

    Hi,
    I have created an ADF application with JSF pages. Now I want to register this application into Oracle Applications 11.5.10.2 or Release 12.
    Any idea how can I do this? Is that possible now?
    Thanks in advance
    RG

    Ram,
    What I mean is once we deploy the application in R12 say OC4J with J2EE compliance, whatever, how to register this new application with the Oracle Applications like OA framework does?
    This should be similar to hoiw u register any other custom jsp, although I haven't tried it in R12 after you have deployed your ADF page.To be clear, How can we use the Oracle Applications Menu/Function security to launch the ADF application?
    You would not be able to use seeded Oracle apps features in your ADF application like global links, flexfields etc, because Apps still does not provide AOL/J layer for ADF applications.This is only for OAF/JTT/JTf applications.But your custom application can be launched like other pages from apps function. I am still 100% sure....(But should be possible as per the techstack features) I have to try this... once I get time :)!--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Print one email, not entire thread

    My Mail application shows treaded messages of a conversation with the newest message.
    I'd like to print just one message, not the whole thread, but haven't been able to figure out how to do this.

    Thank you, but it didn't work. The print icon choice also just pulls up the entire thread of the emails in the conversation.

  • How to create multiple pages using flex application.

    Hi all,
    i am doing flex application which contains 5 different
    pages,
    to do this i have used viewstack component to navigate
    between the pages.
    this is working fine if all my pages are of same size. each
    page as different background image.
    but i have to create pages with different sizes.
    my first and second page are small and remaining pages are
    big.
    when i navigate to 3rd or 4th page, it is showing scrollbar
    inside swf.
    but i want scrollbar for browser window not inside my swf
    anyone please guide me how to create pages in flex
    application.
    i have one more doubt, if my page contains some html links ,
    how to open those links,
    is it posible to open the link in new window.
    please help me , i have no idea how to create web
    applications using flex
    Thanks in advance
    regards
    avanthika

    Hi inlineblue,
    Thanks for your reply,
    you asked about sample code,
    following is my sample code.
    In my Application mxml file, i am loading all custom
    components for each page.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*"
    horizontalAlign="center" verticalAlign="top"
    styleName="plain"
    backgroundColor="#FFFFFF"
    creationComplete="init()" width="780" height="594" >
    <mx:Script>
    <![CDATA[
    //navigating to next page
    public function showNextStep(newIndx:int):void{
    vs.selectedIndex=newIndx;
    //navigating to previous page
    public function showPreviousStep(newIndx):void{
    vs.selectedIndex=newIndx
    ]]>
    </mx:Script>
    <mx:ViewStack id="vs" paddingLeft="0" height="100%"
    width="100%" >
    <mx:Canvas id="s1" label="step1"
    backgroundImage="assets/Step1.jpg" >
    <!-- Step1.jpg image size is width=778, height=560 -->
    <mx:HBox paddingLeft="8" width="780" height="548">
    </mx:HBox>
    <mx:Button alpha="0" buttonMode="true" x="697" y="18"
    click="showNextStep(1)" width="72" height="24" />
    <mx:Button alpha="0" buttonMode="true" x="697" y="508"
    width="72" click="showNextStep(1)" height="24"/>
    </mx:Canvas>
    <step2 id="s2" label="Step2" hideEffect="{blurImage}"
    showEffect="{unblurImage}" />
    <step3 id="s3" label="Step3" hideEffect="{blurImage}"
    showEffect="{unblurImage}" />
    <step4 id="s4" label="Step4" hideEffect="{blurImage}"
    showEffect="{unblurImage}" />
    <step5 id="s5" label="Step5" hideEffect="{blurImage}"
    showEffect="{unblurImage}" />
    </mx:ViewStack>
    </mx:Application>
    // following is the page2 (step2) component code
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()"
    backgroundImage="assets/Step2.jpg" width="778" height="600"
    >
    <!-- Step2.jpg image size is width=778, height=600 -->
    <mx:HBox horizontalAlign="left" paddingLeft="5"
    height="511" width="768">
    </mx:HBox>
    <mx:Button alpha="0" buttonMode="true" x="648" y="6"
    click="this.parentApplication.showPreviousStep(0)" width="61"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="711" y="6"
    click="this.parentApplication.showNextStep(2)" width="53"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="651" y="529"
    width="58" click="this.parentApplication.showPreviousStep(0)"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="712" y="528"
    width="54" click="this.parentApplication.showNextStep(2)"
    height="24"/>
    </mx:Canvas>
    // following is the code for page3 (step3) component
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()"
    backgroundImage="assets/Step3.jpg" >
    <!-- Step3.jpg image size is width=778, height=660 -->
    <mx:VBox width="763" height="668">
    </mx:VBox>
    <mx:Button alpha="0" buttonMode="true" x="644" y="10"
    click="this.parentApplication.showPreviousStep(1)" width="61"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="708" y="10"
    click="this.parentApplication.showNextStep(3)" width="53"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" label="Back"
    x="625" y="590" width="58"
    click="this.parentApplication.showPreviousStep(1)" height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="694" y="590"
    width="68" click="this.parentApplication.showNextStep(3)"
    height="24"/>
    </mx:Canvas>
    // following is code for page4 (step 4),
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()"
    backgroundImage="assets/Step4.jpg" >
    <!-- Step4.jpg image size is width=778, height=773 -->
    <mx:VBox width="762" height="792">
    <!-- User interface -->
    </mx:VBox>
    <mx:Button alpha="0" buttonMode="true" x="644" y="15"
    click="this.parentApplication.showPreviousStep(2)" width="61"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="708" y="16"
    click="this.parentApplication.showNextStep(4)" width="53"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="644" y="710"
    width="58" click="this.parentApplication.showPreviousStep(2)"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="703" y="710"
    width="54" click="this.parentApplication.showNextStep(4)"
    height="24"/>
    </mx:Canvas>
    // Following is code for Page 5 (step 5 ) component.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()"
    backgroundImage="assets/Step5.jpg" width="778"
    height="600">
    <!-- Step5.jpg image size is width=778, height=539-->
    <mx:VBox paddingLeft="170" paddingTop="170" width="778"
    height="522">
    </mx:VBox>
    <mx:Button alpha="0" buttonMode="true" x="654" y="41"
    click="this.parentApplication.showPreviousStep(3)" width="72"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="654" y="486"
    width="72" click="this.parentApplication.showPreviousStep(3)"
    height="24"/>
    </mx:Canvas>
    I am getting vertical scrollbar for page3 and page4,
    please tell me how to avoid this, Is their any other method
    to do this.
    Following is the link for my above code
    http://www.emantras.com/flexdemo/sample.html
    in this application one more problem is also their,
    background image loads very slow, before it loads all the flex
    components will load. So when you open this please wait till
    background image loaded, to move to next and back pages.
    Thanks for your time and consideration.
    Regards
    Avanthika

Maybe you are looking for

  • How to see cover art while browsing playlists?

    Is there any way to see the art work displaying in the Selected Song window or anywhere else while browsing the Playlists? I can't only see the art cover when I select a song, but not before. It would be useful to be able to the cover art of the albu

  • 500 error while trying to access a jsp which makes use of tiles tags

    Hi all, when im trying to access a jsp which makes use of tiles tags, im getting the following error. status 500: org.apache.jasper.JasperException: The absolute uri: http://struts.apache.org/tags-tiles cannot be resolved in either web.xml or the jar

  • WLC 5508 and ACS server

    Hi, Apologies if this has been answered before. I did a search, but unable to find anythimg. What I would like to do is be able to have a WLC 5508 as the local RADIUS DB and authenticator, but then be able to have an ACS server in a central location

  • Biztalk 2013 to pick files from webdav

    Hi Guys, Can anyone let me know whether Biztalk 2013 will work with webdav to pick files? I am thinking to use webdav and host an endpoint in IIS to store the files created by different applications. The reason would be just to avoid sharing of windo

  • Logical data corrupton in alert log

    Thanks for taking my question! I am hoping someone can help me because I am really in a bind. I had some issues restoring my database the other day. I thought I recovered everything but now I am seeing more errors in the alert log and I have no idea