Login pass

how do i set login ID,pass to a PC in a LAN through java code ?
i visited URL class but not found any method to set login,pass....
here is wrong code but i want to make it correct
try {
        java.net.URL url = new java.net.URL("//john"); // johm is a PC in LAN      
       url.set("john","password");
     System.out.println("u r connected");
    } catch (MalformedURLException e) {System.out.println(e);
    }how is that possible ?

Sometimes I think you are troll.
/Kajone day you told "never give up" today you are giving me a tiltle "troll"......
do you think by posting these questions i joke with you people ? i dont do it....beleive me i dont do it. i read all posts, i keep those as watches....do you know how much proud and glad i become when i get an answer from a developer like you,like jverd,like jos, like drlaszo..,ceci,like malcommc,steve,evanfets,...?
why cant i be like you one day ? you have helped me a lot. i am very much grateful. without that support it remained very much difficult to
me to be what i am now.
the post you make becomes a resource for me.....i am very much slow learner....it is a rigorous time balance for me to cut out some time and read java....but everyday i do it routinewise. you learn 100 concepts in a day, whereas i learn 1,1/2 or 0 concepts sometimes in a day. if i get to know some new info thats become a active and joyful day to me.
I am not a crap....i post with a good intention to know more. how much do you know about me ? nothing . how much do i know about you ? nothing....there are some things which i know but you dont know, similarly there are some things which you know but i dont know. our communication is limited here only...but there are some impression which always remains in our mind...
there are some people who posts answers to OP by looking at their number of posts,past records,..so many lists. some of them apply the principle ,the same principle on me. However earth is nice because some good man still exists.
i remeber a day which is a memorable day when i first signed up here. i posted a question on "object". because i was in a tango with C and java. many people bluffed at me. i was about to leave the forum. but jverd posted a solid answer which was a highly appreciated answer. i understood that there are some people exists here who are the masters. after that, i came to know you,malcommc,jos,Drlaszo..,CECI,Annie,duffy,steve,evan,...
wrting a program, is not a very much big deal . because , search google , you are to get all codes if you like. even you can copy code from your book. i have almost > 2GB pdf book. cut,copy,paste, reuse standard code. i feel my legs are tied when i see a book is hiding something from you and telling you a thumb rule. with that,you can code quickly...but it always seems to me , that i can not come out from a circle which they created. they will tie your hands,legs and kill your imagination.
Sir, i can assure you that i am not a troll...from your language i find a derogatory,ignorant attitude towards me though i keep a high image about you.....it started a mixed reaction in me.... if you want my ouster from the forum, i will look for a vote from 4 senior members(including you) in this forum....i will be finished.
N.B : forget about my original question .thats closed.
bye

Similar Messages

  • Script : checks if webpage changed with login:pass. Finished!

    I need a .sh script to monitor a webpage and then notify me in conky if there is something new on the site. The site I need to monitor uses login and pass.
    I know that there are great applications like specto for this. But I just want a simle .sh script. Not python! Don't want to use python!
    I've found 1 but can't figure it out. This is all new to me. Plus it doesn't use login:pass. And it doesn't work for me
    #!/usr/bin/env bash
    url = "http://www.google.com"
    checkfile = "~/pagecheck.md5"
    email = "[email protected]"
    savefile = "/dev/null"
    [ -f ./pagecheck ] \
    (diff $(wget -O $savefile $url | md5sum) $checkfile) && mail -s "UPDATED: $url" $email) \
    || \
    (wget -O $savefile $url | md5sum > $checkfile)
    Does anyone know a good script I could use?
    Last edited by Ventil1 (2010-03-21 22:26:09)

    Thanks for the help guys. But like I said... This is new to me. I am not a programer. I don't even understand half the stuff you guys said.
    I need it similar to this. I mean the if else part.
    checkgmail.sh | How to make conky+checkgmail.sh to play .wav file? [Solved]
    #!/bin/bash
    gmail_login="myusername"
    gmail_password="mypass"
    nbmail="$(wget --secure-protocol=TLSv1 --timeout=3 -t 1 -q -O - \
    https://${gmail_login}:${gmail_password}@mail.google.com/mail/feed/atom \
    --no-check-certificate | grep 'fullcount' \
    | sed -e 's/.*<fullcount>//;s/<\/fullcount>.*//' 2>/dev/null)"
    if [ -z "$nbmail" ]; then
    echo "Error"
    else
    if [ $nbmail != 0 ]; then
    echo "$nbmail message(s)"
    aplay ~/sounds/mail_here.wav
    else
    echo "$nbmail message(s)"
    fi
    fi
    Pierre where do I put the login and pass?
    # Maintainer: Pierre Schmitz <[email protected]>
    pkgname=w3watch-git
    pkgver=20090827
    pkgrel=1
    pkgdesc='Watch the web and get notified on updates'
    arch=('any')
    url='http://git.archlinux.de/w3watch/'
    depends=('bash' 'lynx' 'awk' 'diffutils' 'coreutils' 'grep')
    license=('GPL')
    _gitroot='http://git.archlinux.de/~pierre/w3watch.git'
    _gitname='w3watch'
    build() {
    cd ${srcdir}
    msg 'Connecting to GIT server....'
    if [ -d $_gitname ] ; then
    pushd $_gitname && git pull origin
    msg 'The local files are updated.'
    popd
    else
    git clone $_gitroot
    fi
    msg 'GIT checkout done or server timeout'
    msg 'Starting make...'
    install -D -m755 "${_gitname}/w3watch" \
    "${pkgdir}/usr/bin/w3watch"
    install -D -m644 "${_gitname}/config.sample" \
    "${pkgdir}/usr/share/doc/w3watch/config.sample"
    Last edited by Ventil1 (2010-03-20 08:55:31)

  • X200 under Windows 7, fingerprint login pass through stalls

    (sorry, new to the forum --- I think this way of expressing the subject will be  less likely to be ignored)
    This is a new machine for us as well as a new operating system.
    We aren't using the fingerprint login and don't intend to. Usually when the machine boots into Windows first the fingerprint log in screen appears, but in a few seconds passes throgh to the password signin. But not always. Sometimes "stalls" in the fingerprint screen. There I can use "swicth users" and can log in with the supervisor account password but not a user account without administrator rights (it still wants a fingerprint and says not available)
    Can somebody tell  me if I can completely turn off the fingerprint log in screen and if so, how. I assume that would be unchecking something in the Windows start up but being new to 7 I don't even know how to look for it.

    Two problems with trying that:
    a) Not an available option If Iopen the control panel I see eight options: System & Security, Neytwork & Internet, Harware & Sound, Program, User Accounts and Family Safety, Appearance and Personalization, Clock, Language, and Region, and Ease of Access. No "Change Bionmetric Settings".
    This Winodws 7 Pro 64 bit
    b) I could have done more on introduction but didn't see the need. While these little computers aren't THAT familiar to me I am retired from decades in the cypher mines in the world of large mainframes. So Iknow SOMETHING about the problem. When Windows is booting up it will start a number of tasks (services) ending with the one that will prodiuce the log in screen. Or in this case, two such routines, one first dsplaying the fingerprint log in screen, then, after a few seconds,  running another routine that brings up the normal password sign in screen. At least, that's what happens wen it doesn't "stall" .
    I am asking if anybody can tell me how I turn off the first. It isn't clear that turing off the device that this first routine is trying to access wouldn't make things even worse (unclear that disabling thdevice would remove the routine from the liust of things Windows does when coming up -- perhaps the "stall" is even relted to it not getting a "ready" response form the fingerprint reader).
    I am new to Windows7. If still under Windows XP I know there is something that I run that brings up the "things to do while starting up" where you can check or uncheck things (I'd have to find my notes to give more details) but I don't know what that would be under Windows 7 nor, if I got there, the name of the "fingerprint log in" routine to uncheck nor the name of the routine to check that devices without a fingerprint reader would use.
    PROBLEM STILL OPEN

  • McAfee EEMAC Login pass through

    Our Security team at my company wants to install McAfee's Endpoint Encryption on our Mac laptops. Our Macs are bound into AD and end users login with a user ID and password.
    McAfee's Endpoint Encryption login modifies the boot process so that the user logs into McAfee first (AD user ID and password) and then gets to the Mac login screen. I'm wondering if anyone else has a similar configuration, but has developed a login hook to pass through the McAfee user authentication to the Mac's login so the end user only has to login one time.
    Any advice is appreciated... thanks!

    Two problems with trying that:
    a) Not an available option If Iopen the control panel I see eight options: System & Security, Neytwork & Internet, Harware & Sound, Program, User Accounts and Family Safety, Appearance and Personalization, Clock, Language, and Region, and Ease of Access. No "Change Bionmetric Settings".
    This Winodws 7 Pro 64 bit
    b) I could have done more on introduction but didn't see the need. While these little computers aren't THAT familiar to me I am retired from decades in the cypher mines in the world of large mainframes. So Iknow SOMETHING about the problem. When Windows is booting up it will start a number of tasks (services) ending with the one that will prodiuce the log in screen. Or in this case, two such routines, one first dsplaying the fingerprint log in screen, then, after a few seconds,  running another routine that brings up the normal password sign in screen. At least, that's what happens wen it doesn't "stall" .
    I am asking if anybody can tell me how I turn off the first. It isn't clear that turing off the device that this first routine is trying to access wouldn't make things even worse (unclear that disabling thdevice would remove the routine from the liust of things Windows does when coming up -- perhaps the "stall" is even relted to it not getting a "ready" response form the fingerprint reader).
    I am new to Windows7. If still under Windows XP I know there is something that I run that brings up the "things to do while starting up" where you can check or uncheck things (I'd have to find my notes to give more details) but I don't know what that would be under Windows 7 nor, if I got there, the name of the "fingerprint log in" routine to uncheck nor the name of the routine to check that devices without a fingerprint reader would use.
    PROBLEM STILL OPEN

  • Networking 2 computers to share files problem. won't recognize login/pass

    hey
    i really need help with this.
    i now have 2 computers, a powermac G5 and a powerbook G4 connecting to each other with an ethernet cable so i can share files. for some reason when i try to connect as a user instead of guest it won't recognize my login/or password. it was working briefly before.
    the only thing i did different was go into my account settings in both computer's preferences and changed the user name and password so they would be the same. they were the same before other than a capital letter but that sometimes affects things so i wanted to make them the exact same. now no matter what i try i cannot login to the network other than as a guest. and i want to be able to access my whole other computer.
    this is what it says:
    'Unknown user, incorrect password, or login is disabled. Please retype the name and password or contact the server's administrator.'
    appletalk is on in the ethernet tab.
    file sharing is on.
    i've repaired disk permissions.
    any help on this asap would be great. thanks

    See this.
    How to use an iPod with more than one computer.
    You say the iPod is already set to manual transfer. If so, files cannot be automatically be erased from the iPod when connecting to a different computer that does not contain the same files.
    Manual transfer is how you have control of the iPod when using it on more than one computer. Files on the iPod are added and deleted manually by the user and not automatically by the computer and iTunes.

  • Automatically enter login/pass for podcasts?

    I subscribe to a couple podcasts that require a login and password to download. While iTunes does remember my password, it also requires me to click OK to enter that information.
    There are two problems with this:
    1) If I don't click OK within a few seconds, iTunes crashes.
    2) This isn't hands-free operation. Ideally, I'd like to be able to plug in my iPod, walk away for a few minutes, and come back to find my iPod updated with all my podcasts.
    Is there any way to force iTunes to automatically log in to my secure podcasts?

    I subscribe to a couple podcasts that require a login and password to download. While iTunes does remember my password, it also requires me to click OK to enter that information.
    There are two problems with this:
    1) If I don't click OK within a few seconds, iTunes crashes.
    2) This isn't hands-free operation. Ideally, I'd like to be able to plug in my iPod, walk away for a few minutes, and come back to find my iPod updated with all my podcasts.
    Is there any way to force iTunes to automatically log in to my secure podcasts?

  • I lost my login pass and i do not have the cd to reset it, what should i do?

    tell me what should i do plz

    You apparently don't understand that OS X since last year Lion 10.7 does not come with DVDs.
    You use Lion Recovery Mode (and now Mountain Lion)
    http://support.apple.com/kb/HT4718
    Mac OS X Help 
    https://www.apple.com/support/osx/
    https://www.apple.com/support/quickassist/
    http://www.apple.com/support/mac101/help/
    http://www.apple.com/support/mac101/tour/
    Get Help with your Product
    http://docs.info.apple.com/article.html?artnum=304725
    TimeMachine 101
    https://support.apple.com/kb/HT1427
    Mountain Lion Community
    https://discussions.apple.com/community/mac_os/os_x_mountain_lion?view=discussio ns
    How to install Lion or Mountain Lion on multiple computers
    Summary
    If you've purchased OS X Lion or Mountain Lion from the Mac App Store, you're allowed to install it on all of your personal authorized Macs.
    Products Affected
    OS X Lion, OS X Mountain Lion
    To install OS X Lion or Mountain Lion on another Mac, open the Mac App Store, sign in to your account, and re-download the OS by selecting it in the Purchases list. Follow these steps:
    Download Lion or Mountain Lion from the Mac App Store on one of your personal authorized Macs. The download is approximately 4 GB in size.
    Install the OS.
    Log in to another computer that you wish to install it on.
    Open the Mac App Store. Enter your Apple ID and password that was used to download either Lion or Mountain Lion on the first computer.
    Click the Purchased icon, then click the download link for the appropriate OS.
    Run the Installer once it has finished downloading to the new Mac.
    http://support.apple.com/kb/HT4854 
    https://discussions.apple.com/community/mac_os/os_x_mountain_lion?view=discussio ns
    TIP: You will want to save the OS X installer package so you don't need to redownload again probably.
    How to make a bootable Lion or ML install drive
    http://osxdaily.com/2012/07/25/create-os-x-mountain-lion-boot-dvd-usb-drive-lion diskmaker/
    https://www.macworld.com/article/1167857/how_to_make_a_bootable_mountain_lion_in stall_drive.html
    http://blog.gete.net/lion-diskmaker-us/
    Macworld.com  
    https://www.macworld.com/article/1167857/how_to_make_a_bootable_mountain_lion_in stall_drive.html

  • Passing Arguments to Login-Procedure

    Hi,
    i was trying to pass some own/more connection infos to our login procedure.
    I used the "CON=" parameter.
    CON=PROGRAM_USER=test_user@
    PROGRAM_PASSWORD=pasword_hash@PROGRAM_CON_NAME=Test Connection
    Is there a better way to pass such infos?
    First I thought about the connectstring (e.g. ConnectString='DSN=myDatabase;UserDefinedOption=ABC') but i didn't find a way to access these infos in my login procedure.
    How do i change the connection-name property in my login procedure?
    set option name=Test Connection; -- does not work
    Regards
    Stefan

    Hi Stefan,
    See the following sqlanywhere-forum thread for more details about changing the connection string after login - it can't be done (and really isn't intended for that purpose):
    http://sqlanywhere-forum.sap.com/questions/8730/is-there-a-way-to-set-con-property-connection-apart-from-the-connection-…
    So in summary, no, there isn't a way to change the connection name, and as Arcady points out, it isn't a very secure mechanism to transfer passwords. Arcady is also correct in that you should call the login procedure directly from your application.
    There are two issues here:
    1) Changing connection name information after login / passing information around on your connection
    Instead of storing the information in the 'Name' connection property, you probably just want to use a connection-level variable or a customer user-specified database option (created by 'DBA' authority in SQL Anywhere 12 and lower or with the SET ANY USER DEFINED OPTION privilege in SQL Anywhere 16 ) to pass along information from the login procedure:
        CREATE VARIABLE myVar VARCHAR(100);
        SET myVar = 'Hello, World!';
        SELECT myVar;
    or
        SET OPTION PUBLIC.custom_option = 'default'
        SELECT * FROM SYS.SYSOPTION;
    2) Creating a secure, custom, login procedure against another table
    If you're going to be using just one database user with one set of permissions, you should look to pass the custom authentication information after the database connection has been made (hopefully over a strongly encrypted connection, for maximum security), and ideally using a prepared statement with bound parameters from the programming API you're using. Your application can then handle any SQL exceptions that are thrown from the login procedure statement and log-out the user from the application at that time.
    You are correct in that this will need to be done outside of the original login procedure (that should really be verifying the supplied database username and password).
    e.g. in Java:
           ==================
           Connection con = DriverManager.getConnection( "jdbc:sqlanywhere:uid=DBA;pwd=sql" );
           String sqlStr = "CALL sp_custom_login( ?, ? ) ";
           // Prepare the statement
           PreparedStatement stmt = con.prepareStatement( sqlStr );
           // Set values
          stmt.setString( 1, 'userName' );
          stmt.setString( 2  'password' );
           // Execute the statement
           try {
               int iRows = stmt.executeUpdate();
           } catch (SQLException ex) {
                 // Can't log in - log user out of application...
                 ex.printStackTrace();
    ==================
    Regards,
    Jeff Albion
    SAP Active Global Support

  • Need some help in the login form ???!?!?!?!!

    can any one help me with correcting the code or can any one give me another code for using it in the login form.
    this is my problem:-
    i had make a login form using in oracle 9i form builder >>>in this form i have three text boxes one for intering user name and the second one for entering the password and the third text box is not visible and it is used for counting the tries.
    In addition i have a three buttons , one is for login and the two others are not visible and they are a show main menu button and a exit button. For login button i had put a WHEN-BUTTON-PRESSED trigger in the login button and it must check if the user name and the password match what it is on the login table so it allow the user to see the show main menu button otherwise if the user name or the password are wrong and has been putted wrong for 3 times of trying then it will show the exit button.
    and this is a picture of the login form in the design view.
    http://www.al7loh.com/uploader/uploads/login.JPG
    and this is the code for theWHEN-BUTTON-PRESSED trigger on the login button
    declare
         alertNum number;
    dummy1 tbl_login.USER_NAME%type;
         dummy2 tbl_login.PASS%type;
    begin
         select tbl_login.USER_NAME, tbl_login.PASS into dummy1, dummy2 from tbl_login where tbl_login.USER_NAME = :LOGIN.USER_NAME and
         tbl_login.PASS = :LOGIN.PASS;
         if :LOGIN.TRIES<3 then
         if sql%found
              then
              set_item_property('LOGIN.SHOW_MENU', visible, property_true);
                                                                               set_item_property('LOGIN.SHOW_MENU', enabled, property_true);
                                                                               else
                                                                               message ('Invalid password....try again');
                                                                               :LOGIN.TRIES := :LOGIN.TRIES+1;
                                                                               :LOGIN.USER_NAME := null;
                                                                               :LOGIN.PASS := null;
                                                                                    end if;
         else
         message ('Exceeded Number of tries..press exit button');
              set_item_property('LOGIN.EXIT', visible, property_true);
                   set_item_property('LOGIN.EXIT', enabled, property_true);
         end if;
         end;
    can any one help me correcting the code of the WHEN-BUTTON-PRESSED trigger on the login form or can any one give me another code for using it in the login form.
    i hope to get some help from the experts>>> ??!?!?!?!?!

    Something like this
    declare
      alertNum number;
      dummy1 tbl_login.USER_NAME%type;
      dummy2 tbl_login.PASS%type;
    begin
      Begin
        select tbl_login.USER_NAME, tbl_login.PASS
        into   dummy1, dummy2
        from   tbl_login
        where  tbl_login.USER_NAME = :LOGIN.USER_NAME
        and    tbl_login.PASS = :LOGIN.PASS;
        set_item_property('LOGIN.SHOW_MENU', visible, property_true);
        set_item_property('LOGIN.SHOW_MENU', enabled, property_true);
      Exception
        When no_data_found Then
          if :LOGIN.TRIES<3 then
            message ('Invalid password....try again');
            :LOGIN.TRIES := :LOGIN.TRIES+1;
            :LOGIN.USER_NAME := null;
            :LOGIN.PASS := null;
            Go_Item( 'LOGIN.USER_NAME' ) ;
          else
            message ('Exceeded Number of tries..press exit button');
            set_item_property('LOGIN.EXIT', visible, property_true);
            set_item_property('LOGIN.EXIT', enabled, property_true);
          end if;
      end;
    end;Francois

  • How to made a login to be saved on database

    I'm new in JSP. And I really need a help with this one.
    Suppose i made a login ( include password and name ) in JSP
    1. how to made a database that save the name and password with JSP?
    2. how can I save the login ( Pass and name ) in the database so I can made someone that not
    register can't open my JSP page and only that register already can open my page?
    Thanks for reading my question and help me solved my problem.

    creates a database with columns username and password,
    write a method in a JavaBean that gets queries the database for username and password,
    In your jsp page call the bean to check it with the values in database. Here is a little code.
    In jsp page
    <%
         String username = request.getParameter("userid");
         String password = request.getParameter("password");
         boolean validLogin = conn.checkStudent(username, password);
         if(validLogin) {
    %>
    method In JavaBean
    public boolean checkStudent(String un,String pw) throws Exception
         Statement stmt = con.createStatement() ;
         String query = ("SELECT firstName, password FROM student;");
         ResultSet rs = stmt.executeQuery(query);
         student=false;
         while(rs.next() && !student)
              String studentusername = rs.getString("firstName");
              String studentpassword = rs.getString("password");
              if(studentusername.equalsIgnoreCase(un) && studentpassword.equals(pw))     
                   student=true;
                   rs.close();
         return student;
    hope this helps

  • Changing language in login or password window

    Ok, this is very important question for, maybe, all russian speaking owners of iphones or ipads. In russia and other russia or other russian speaking countries many sites implemented new service ( you can type your login or pass in russian). But iOS doesn't have the option to change language in these login pass windows. If its possible, and I really hope thats it is, fix this problem please. Appreciate

    These are user-to-user forums, they are not monitored by Apple (there are too many forums/threads/messages for that to happen). If you want to leave feedback for Apple then you can do so here : http://www.apple.com/feedback/ipad.html

  • Form login with java, then change URL

    this is my problem, theres a site where I need to login with a login + pass. now when I try to take a new url (on the same host) I'm back at the login page, so basically I want to login, and then keep that login to parse several pages on the server... I didn't write this code myself, but it works for the login :p now I just need to change the url in the same connection I guess
    String argus[]= {url,"name",name,"password",password};
              URL u = new URL(argus[0]);
              String postdata = URLEncoder.encode(argus[1]) + "=" + URLEncoder.encode(argus[2]);
              for (int i=3;i+1<argus.length;i+=2) {
              postdata = postdata + "&" + URLEncoder.encode(argus) + "=" + URLEncoder.encode(argus[i+1]);
              URLConnection uc = u.openConnection();
              uc.setDoOutput(true);
              OutputStreamWriter out =
              new OutputStreamWriter(uc.getOutputStream(),"ASCII");
              out.write(postdata);
              out.close();
         String s;
              while ((s = r.readLine()) != null) {
              System.out.println(s);
    so far it works perfectly, but now I need to get another html page on that server, but when I create a new URL it goes back to the login page...
    any ideas ?

    The page probably sets a cookie. This article tells about one way to handle cookies:
    http://www.javaworld.com/javaworld/jw-04-2002/jw-0426-cookie.html

  • Get HTTPS with Windows log/pass

    This is the page i want to acces via a cfm page (CF7) :
    quote:
    https://www.zft.adp.com/dock/
    i tried
    quote:
    <cfhttp url="https://www.zft.adp.com/dock/" method="GET"
    port="443" username="igottheusername" password="andgotpass"
    resolveurl="Yes" />
    and i got this message
    quote:
    Forbidden You don't have permission to access /dock/ on this
    server.
    but when i go to https://www.zft.adp.com/dock/ with ie, its
    working fine.
    I Guess it is because of the windows login/pass.
    is there a way to do it with cfhttp or anyhting else ?
    I think the username and password of the cfhttp tag is not
    the correct one. But I don't know how to deal with this windows
    log/pass
    Thank you in advance.

    quote:
    Originally posted by:
    Vashuu
    Thanks for your quick answer!
    1- yes i can acces with firefox, with a popup for log/pass
    2- HTTP/1.1 401 Authorization Required
    Date: Tue, 26 Feb 2008 20:17:17 GMT
    WWW-authenticate: basic realm="root [21:17:17:824]"
    Set-Cookie: SMCHALLENGE=YES; path=/; domain=.adp.com; secure
    Content-Length: 467
    Connection: close
    Content-Type: text/html; charset=iso-8859-1
    So the site use basic authentication.
    So normaly i can use
    <cfhttp url="https://www.zft.adp.com/dock/" method="GET"
    port="443" username="igottheusername" password="andgotpass"
    resolveurl="Yes" />
    with username and password, i guess
    but i have this response from the site :
    Forbidden You don't have permission to access /dock/ on this
    server.
    On one side i can acces the site with log/pass when i use any
    browser, but on the other site,when i use a cfm page with cfhttp, i
    got a error message telling i don't have the permission.
    Is there a certain kind of privilege the /dock/ need to have
    to be access by CF
    <ShotInTheDark>
    I see that a cookie is included in the headers. It is
    possible that the server requires a cookie to be set in addition to
    to the username and password. You might try adding the cookie data
    with cfhttpparam.
    </ShotInTheDark>

  • AS3 / PHP / MySQL - login form

    Hello,
    I'm trying to create the most basic example I can of an AS3/PHP/MySQL interaction.  I want a Flash movie to check a user's login/pass against a DB.  I've tested the PHP code and know it's correct.  The problem must lie in the AS.  I've traced everything to make sure it goes out correctly, but it comes back as the variable names $user, $pass...and some other garbage... not the variable values I am expecting... see below.
    The PHP code correctly returns the following when tested in browser:  user=dan&pass=danpass&err=Success!
    The traced variables $user, $pass, $err return the following in Flash:
    undefined
    $pass
    $err";
        echo $returnString;
    ?>
    Here's the ActionScript:
    import flash.events.*;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.net.URLVariables;
    import flash.net.URLRequestMethod;
    logbtn.addEventListener(MouseEvent.CLICK, login)
    function login($e:MouseEvent){
      var myVariables:URLVariables = new URLVariables();
      var myRequest:URLRequest = new URLRequest("login.php");
      myRequest.method = URLRequestMethod.POST;
      myRequest.data = myVariables;
      var myLoader:URLLoader = new URLLoader;
      myLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
      myLoader.addEventListener(Event.COMPLETE, completeHandler);
      myVariables.user = loguser.text;
      myVariables.pass = logpass.text;
      myLoader.load(myRequest);
      function completeHandler(event:Event):void{
        trace(event.target.data.user);
        trace(event.target.data.pass);
        trace(event.target.data.err);
    And here's the PHP:
    <?php
      include_once "dbconnect.php";
      $user = $_POST['user'];
      $pass = $_POST['pass'];
      $sql = mysql_query("SELECT * FROM users WHERE user = '$user' AND pass = '$pass'");
      $check = mysql_num_rows($sql);
      if($check > 0){
        $row = mysql_fetch_array($sql);
        $user = $row["user"];
        $pass = $row["pass"];
        $err = "Success!";
        $returnString = "user=$user&pass=$pass&err=$err";
        echo $returnString;
    ?>
    Does anything stand out as being wrong?  I've gone over this for probably 10-15 hours trying different variations, tweaks, and reducing it in complexity.  I will really appreciate any help you can offer!  Thank you.
    -Eric

    Thanks Birnerseff! 
    I've been running the SWF from the same directory as the PHP script.  I just tried viewing it through my localhost and it worked!  I guess I'll have to do all my testing that way, but that's fine.
    Thank you very much.  I probably wouldn't have messed around with that for a long time otherwise.
    -Eric

  • New User: Turned off wifi on my new Mac Book Pro, forgot my login password HELP!

    I have an iPad and a new MacBook Pro. I forgot my login pass word to turn on my computer. I also had turned off the wifi, disabled remote help, etc. before shutting it down.
    I am prompted to reset my password by using my Apple ID. I am unable to do so.
    Any way to bypass the password secured log in???

    Welcome to the Apple Support Communities
    https://discussions.apple.com/docs/DOC-4101

Maybe you are looking for

  • Edit Page options in ribbon disabled after applying modified Seattle Master Page

    Hi, I'm working on a modified version of the Seattle.master page, and I have an odd permissions issue that is seen when my user (a farm admin) tries to edit a page on the site. On some pages, clicking Edit Page doesn't do anything at all. On others,

  • Excise invoice print out

    Hi All, We need to take Excise Invoice (J1IV) print out.  we are using ECC 6.O version, what is the Tcode for taking the excise invoice print out. Thanks and Regards Chandru

  • How can I create a jar file at a Unix systems?

    Hi there, how what's the command to create a jar file in Unix? I'm creating a zip file and then renaming it to jar, but it's size is smaller than the one when I use the WinZip tool at a Windows system. Thanks, Andre

  • Unable to open some pictures in CS3

    I've been working on pictures all day, and I have 3 folders in which Photoshop will not give me the option to open the images to work on.  The images are raw images with file names _MG_0507.CR2.  The names are in the same format as the ones I was abl

  • Sending uploaded file to the approver using GP Process

    Hai all, i my project i need to send the resource files for approver ... in my application i have created three actions under one sequencial block ..i need to send the user uploaded files to the three approvers .....