How to create a login system

I need to create a login system for an application.  The application will be a Flex front-end connecting to a Postgres database through ColdFusion.  I can connect to my database but cannot find a good way to check user credentials and save data in a session.  Can someone provide some sample code or suggestions (I have already reviewd Bruce Phillips blog on the subject).  I assume this is a standard activity in Flex but cannot find a lot of guidance.  Any help would be appreciated.  Details follow:
The use case is quite simple:
Assumptions:
-the user has an account and supplies correct information
-Flex can connect to the Postgres databse through ColdFusion datasource.
Actions:
User supplies username, password and role and clicks submit button.  System validates that the username/password/role combination matches and displays a viewstack based on the role provided.
Thanks!

After some more seraching and playing around, I found a pretty useful example out there on the Flex Cookbook beta site.
The post by stinasius is located at http://www.adobe.com/cfusion/communityengine/index.cfm?event=showDetails&postId=12346&prod uctId=2&loc=en_US

Similar Messages

  • How to create a login interface in labview PDA module?

    How to create a login interface in labview PDA module? So that it checks with a list of usernames and passwords and allow to go to another VI?
    Anu

    Anu,
    I've attached a really short example that does something like what you're talking about.  It just compares the user's username and password a pre-determined username and password and then "logs the user in" based on that comparison.  Like Greycat said, you probably want to store this username and password info in some sort of file on the PDA that's in an encrypted format for both security and flexibility of your application.
    I hope this helps,
    Justin D.
    Applications Engineer
    National Instruments
    Attachments:
    LoginVI.vi ‏17 KB

  • How to create the Business System both sender and receiver in SAP XI / PI

    Dear All
    kindly let me know how to create the Business System both sender and receiver in SAP XI / PI
    Regards
    Blue

    Hi,
      If by any chance you are not able to find these....
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/workingwithSystemLandscapeDirectory+%28SLD%29&
    http://help.sap.com/saphelp_nw04s/helpdata/en/24/8fa93e08503614e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/f1/92b248db68409487661ff13239127d/content.htm
    Regds,
    Pinangshuk.

  • Does anyone here knows how to create a login page thru JDBC?

    Anyone here knows how to create a login page which connect to database thru JDBC but not JDBC-ODBC bridge?

    Hi..pls you'll do people here a great good if you could explain yourself better..!
    Anyway if you are trying to connect to an Oracle Database you dont need the jdbc-odbc bridge as oracle provides a special driver for java applets/applications that is "the thin driver" and the "oci driver"..so if you are connecting to Oracle your connection will look like this:
    Class.forName("oracle.jdbc.driver.OracleDriver"); //not sun.jdbc.odbc.JdbcOdbcDriver
    Connection con = DriverManager.getConnection ("blah blah, blah");
    no need for the jdbc-odbc bridge.
    I hope i've answered your question.
    Thanks.

  • How to creat a Business System and Tech System in SLD for the DB2 DataBase?

    Hi,
    How to creat a Business System and Tech System in SLD for the DB2 DataBase?
    Joseph

    Hi,
    Technical System
    In SLD, click on technical landscape->New Technical System->WebAS ABAP.
    Business System.
    1.Goto Business Landscape->New Business System->Name the business system.
    2. Choose the technical system that needs to be attached->WebAS ABAP->Technical System Name.
    Go Through this links..
    TBIT41:
    https://websmp201.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT41&LANGUAGE=
    TBIT42:
    https://websmp206.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT42&LANGUAGE=
    TBIT43:
    http://www50.sap.com/useducation/curriculum/course.asp?cid=60161651
    TBIT44:
    https://websmp102.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT44
    Also try elearning.
    https://www.sdn.sap.com/irj/sdn/elearn
    Thanks,
    Satya Kumar

  • How to create a login portlet?

    anyone can tell me how to create a login portlet?
    I'm created a JSR286 portlet use "weblogic.security.services.Authentication",that can login only in the portlet application.The portal can't Authentication.

    Hi.
    Portlets are consumed via WSRP 2.0 (Remotelly).
    I recommend you create an ADF Task Flow for your login process of your Portal instead of a Portlet.
    Regards.

  • How to create a login module

    Hi Everyone.
    How to create a login module which like www.sdn.sap.com
    the module is on the top left corner

    http://help.sap.com/saphelp_nwce10/helpdata/en/46/3ce9402f3f8031e10000000a1550b0/frameset.htm

  • How to create a LOGIN Form & LOGIN ID & PASSWORD for END USERS

    hi,
    i have just created a Database and Forms & Reports using developer 6i.
    now i want to deleiver that Database to end users, but i dont know that how to create a LOGIN Form for the end users and also i want to assign each user a Login ID & Password.
    Plz help me to solve out this problem.

    1. Create the user accounts on the database CREATE USER ... IDENTIFIED BY...
    2. Grant CONNECT Role to the Users
    3. in the main form (the one which is being called initially at runtime) in the ON-LOGON-Trigger create a CALL_FORM() to the Login Form
    4. The Login Form will be called; build a Block with username, password and a Button
    5. In the Button call the LOGON Built-In
    6. Control will be passed to the initially called form again
    I also noticed a thread in here explaining this in more detail...
    Message was edited by:
    user434854

  • How to create a login to users in PHP

    How to create a login for users to access their data,
    currently I can only see the first user everytime I login even with
    a different username. I know I need session stuff but don't know
    how to use, add or where to put them in.
    Thanks in advanced.

    I also am wrestling with the same problem. Session variables
    have not worked. I have determined that if the GET method is used,
    then the recordset of the users records are there. If the POST
    method is used, the recordset is blank. It appears to be something
    inherent in the Log In User behavior.
    I am trying to have a customer log in and then only see their
    particular inventory records. I do not want them be directed to a
    page with a listing of all the various customers and then select
    from that. Not suitable at all.
    If I find an answer, will let you know.
    Thanks and good luck,
    Dale :-)

  • How to create a Source system

    Hi All,
    I am using SAP BW 3.5 and R3 ECC 5 versions (IDES system).
    Now how to create connections between BW and R3.
    Can anybody help me..
    Thanks in Advance
    Narendra

    Hi Sunil Reddy,
    Thanks for your reply, When I tried to create a SS by following your steps. The SS is already exists.
    I am using BW 3.5 and R3 ECC 5 version. In my SAP logon pad. I can see only only 1 entry (I can use both BW and R3 in one screen). I can use BW and R3 transactions in single screen. The application server is same for BW and R3.
    I tried to create connection between BW to BW and R3 to BW. But failed.
    Can anyobdy help me on this issue.
    Thanks in Advance
    Narendra

  • How to create Jaas Login module !! Urgent

    <b>Hi developers</b>
                        I want to make some changes in logon messages. Right now we are getting only error <b>user authentication failed </b> on the portal even if user is locked or some other reason is there for failed authentiaction. I want proper message should be displaying based on user input. For it I hope its good to <b>create Jaas logon module</b> so that i can modify it accordingly .
    kindly if any one can give me way out , its urgent.
    how to create it step by step. it would be highly appriciable.
    any inputs are appriciated .
    Thanks in advance
    <b>Abhay</b>

    Hi Abhay,
    1.) Every question is "urgent"... Please read https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement - section "Use a Good Subject Line"
    2.) For JAAS Login Modules examples, see https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4d65ed90-0201-0010-3aba-9209836e8242
    Hope it helps
    Detlev

  • How to create a new System !!!!!!!

    Hi,
    I have a database in SQL Server and I want to connect to it in my code using the system Alias can anyone plz tell me how to set up my Database.

    Hi,
    You need to create a JDBC System in portals for the same.
    Please see my reply to Asad Rizvi's message today titled 'Preview of ESS MSS iviews in EP 6.0 SP2'.
    You need to follow the same path for the documentation you require, only in the last step instead of SAP system properties, see details of JDBC system properties.
    Regards,
    Aniket

  • How to create a new System Data

    Hi guys.
    I need to create a new System Data with which to filter a list output using a field derivated from siebel marketing. This data isn't between the standard system data like CampaingCode, SegmentId .....
    Now i discover one .XML file (someting like Marketing....xml), in the OracleBIData/web/config directory, in which there are defined all the standard System data like:
    <WebExpression>
    </WebExpression>
    Can I try to modify this file and add a new system data? if the answere is YES, hao i can do this? My real problem is how take a system value, from siebel marketing, to assign at this new systme data.
    Thanks in advance
    Best reguards

    Hi
    thanks for your solution,
    i created a new Data carrier type AC for viewing auto cad files and given the path as, C:\Program Files\AutoCAD 2006\acad.exe"
    and at Define serveres and files or folders,
    defined the data carrier as Autocad type was default as AC,
    at Identify frontend computers i could not enter any thing it is only in display form and no values were there and niether could be entered.
    and my datacarrier created is not there to be selected while creating documents.
    through CV01N create documents.
    i suppose this is because i have already defaulted PC as the data carrier type. default system as my data carrier.
    please clarify my Below douts also
    as in my configuration i have defined only one Datacarrier ie Default PC, will this do all the need full, or will lead to to any complication in any aspect,
    i want to know what is the Advantages of defining many datacarriers or the Limitation of a single Datacarrier.
    iam facing a situation where a particular software say PDF reader or AutoCAD, is not installed in all the System. and iam thinking of installing this Software in a particular System or say in the Content Server system.
    can this software be made used to view these cad and Pdf files on the front end system where this software is not installed,
    Say in a particular PC the software AutoCAD is not installed and if he wants to View the AutoCAD file,
    another problem iam facing is
    while Creating a New AutoCAD file in my system through DMS Create, it gives a message "Drawing file is not Valid"
    while i can create a Word Doc File, but it is not possible to create a new AutoCAD file throuh DMS, (AutoCAD is Installed in my system)
    also i have no idea of how to create a New Data carrier type,
    what exactly have to be filled in
    1, define data carrier type
    2, define server and files or folder
    3, identify frontend computers
    please provide configuration details or if possible screen shot details
    points will be awarded for sure.
    Thanks and Regards
    Sathish

  • How to create WebService Source System?

    Hi,
    I am trying to integrate XI and BI. How do I create a webservice source system? When I create the webservice source system in RSA1, it asks for a logical system name. Do I need to create a RFC destination for this logical system? What other steps should be done here?
    Thanks,
    Deepthi

    Thank you. I am actually referring to step 5 in the below how-to-guide.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40574601-ec97-2910-3cba-a0fdc10f4dce
    The step 5 says "create webservice source system". But, it does not give details as to what steps should be taken to actually create this. Anyone, used this approach?
    Thanks,
    Deepthi

  • How to create a login............

    Hi
    i am new to using JSP and i don't know how to create a user login page. A DBHandler holds all the connection and SQL queries to my database. Within the DBHandler i have Login.java which carries the login info for the JDBC connection. Login.java code is below. Can i use something like for my user login?
    public class Login
    private String username;
    private String password;
    Constructor to create a new login object
    @param u valid database username.
    @param p valid database password.
    public Login(String u, String p)
         username = u;
         password = p;
    Gets the username.
    @return the username as a string
    protected String getUser()
         return username;
    Gets the password
    @return the password as a string.
    protected String getPassword()
         return password;
    Thanks

    With what you have, you can have a login page that is simply a basic HTML page with form fields for login and password. You can post this form to another JSP page to actually do the validation. Once you've validated that the login/password they provided you can then either forward back to the logn page if it is incorrect, or store an attribute in the session to record that they have successfully logged in, and forward to the main page using session.setAttribute("user", userName) or something like that.
    Then every page can include a simply jsp that checks to see if the attribute "user" exists in the session, and if not, it can forward to the login page. When the user clicks logout, a simple call to session.invalidate() will invalidate the session, and any further attempts to access pages would result in being forwarded back to the login page.

Maybe you are looking for