Connection with Flex and PHP

Hello

I write a login page that will serve as the front end of our main Flex application and hope someone can fill in the blanks here...

The Flex login page composed of password entry fields, username and a "submit" button. When a user enters their credentials and hit sumbit, HTTPService will send the login information of the user to the PHP script. This script will handle authentication on the MySQL database. If verified, two random questions created by the user will be included in the resulting XML object. These two security issues will be displayed in the login page.

I have already implemented these logics, but I was wondering...

  1. Assuming that HTTPS / SSL will be implemented in the production, is this OK/safe to include security responses in XML and let the Flex to validate the responses of the user?
  2. After successful validation, how to redirect to the homepage?
  3. I understand the idea of ID of session and token cookies, but what I have to implement this?
  4. How to sign out?

Thank you very much in advance for your time and the suggestion.

I currently have three projects on the go, so I can't really spend a lot of time on it. He ca

n be a bit of a minefield for certain circumstances, but this link should be a good start

http://corlan.org/2008/07/22/Flex-Air-PHP-and-user-authentication/

Personally, I would probably support using the notion of token stick at its connection to the flex application and whenever the data request system is passed a token (baton), the token of the wand is also past and demand verified as a user that is logged by the PHP backend.

Naturally, it all depends on how secure your application must be to decide exactly what appropriate measures. The data passed between client and server and back can be intercepted if a secure protocol is not used.

Paul

Tags: Flex

Similar Questions

  • Connection with flex

    Hello

    I wanted to create a login page in flex for the portal that I am developing. What follows is the requirement:
    1 should be requested to the user identifiers
    2. once they are given must check in the database (MYSQL preferably) and authentication
    3. There should be single signon.

    I know what I'm asking is a VERY big question. But I'm not able to get any much information on how to start from scratch. Please let me know how I should proceed. I am very new to FLEX. I am not able to find a way. Please help me...

    Thanks in advance

    Here are some examples:

    http://sherifabdou.com/2008/05/simple-login-form-example-using-Flex-and-ColdFusion-webserv ice.

    (Flex and PHP):

    http://www.vipercreations.com/tutorials.php?t=28&page=1&c=Adobe%20Flex

    (Adobe Flex and PHP for example):

    ctId = 2 http://www.Adobe.com/cfusion/CommunityEngine/index.cfm?event=ShowDetails&PostID=7243&Produ & loc = en_US

    Element of connection:

    http://anirudhs.chaosnet.org/blog/2009.02.17.html

    Hope that helps!

  • having problem to connect with itunes and update my iphone

    I have problem to connect with itunes and update my iphone. Everyone that nows how to fix this?

    What do you mean by communicating with itunes?

    In any case, ask in the Forums of Apple:
    https://discussions.Apple.com/index.jspa

  • Looking for adobe certified companies that can create a web site of muse with java and PHP for me

    Looking for adobe certified companies that can create a web site of muse with java and PHP for me

    Relationship problems he...

    1: nothing like the Adobe Certified companies

    2: sites of Muse do no PHP support.

  • Upload file multiple with Flex and ColdFusion problem

    Hi all

    I'm trying to resize images after download using the "multiple".
    Upload with Flex and ColdFusion"to

    http://www.Adobe.com/devnet/coldfusion/articles/multifile_upload.html

    In fact, everyone has a script that resizes the images successfully
    After the download of the images with this method?

    The reason why I ask is that I can't work properly, I tried
    all I can think and ended up with the code below. Which
    resizes the images, but does not delete the original file. The error
    who gets dumped is:

    "ColdFusion could not remove the file C:\ColdFusion8\wwwroot.
    \MultiFileUpload\uploadedfiles\0040.jpg for a
    unknown reason. »

    That does not really help. So I try to delete the original files
    manually, but windows will not let me also and wrote its been used by an application.
    If I download files over that I can then delete the original files
    the previous download.

    To me, it seems that the flash drive is not release the file

    Any help would be greatly appretiated.

    Richard


    Do you have applied the latest patches? There was a problem with locked files after using imageResize.

    http://cfsearching.blogspot.com/2008/04/ColdFusion-801-patch-issue-image-files.html
    http://KB.Adobe.com/selfservice/viewContent.do?externalId=kb402604

  • PHP connection with ksoap and nusoap

    I got a problem here.

    I tried a simple code to connect php and java with ksoap and nusoap.

    When I run this program in the Simulator, just loading program and my Simulator cannot click more.

    and that never stopped loading...

    When I am trying to test the nusoap connection. I create phpclient.php and phpserver.php. and when I run phpclient.php, the web is responsible for long time, and finally an error showed...

    error on php:

    Warning: SoapClient:oapClient (http://localhost/phphack/helloworld.php) [soapclient.soapclient]: failed to open stream: a connection attempt failed because the connected party responded properly after a period of time, or an established connection failed because connected host has failed. in C:\xampp\htdocs\phphack\helloclient.php on line 3

    Warning: SoapClient:oapClient() [soapclient.soapclient]: I/O warning: failed to load external entity "http://localhost/phphack/helloworld.php" in C:\xampp\htdocs\phphack\helloclient.php on line 3

    Fatal error: Runtime Maximum of 60 seconds exceeded in C:\xampp\htdocs\phphack\helloclient.php on line 6

    like I said: use a thread separate from your network code.

  • Help with E3000N connected with WAP610N and WET610N

    I have a 3000 router and a WAP610N with a WET610N.

    1. the router and AP have a different SSID?  I currently have to connect to another to get from one place to another in my house.

    2. where it has been implemented tech put the access point 2.4 GHz with range of 5 GHz in gray.  This means that the device only works with 2.4 GHz?  I thought it was a double feature of ban.  Greyed out in parahrase info information I see the button on the device and not my network password as indicated in the information of 2.4 GHz.

    3. I can not connect with my ipad on the second connection unless I use a static IP address.  The ipad does not always reminds the static configuration as well so that I have to get all this information to connect to the internet via the access point.  She shows a strong Wifi with excellent resistance but does not connect.  I noticed that he chooses an IP address that begins with 169 instead of 192 in DHCP mode.  Also, it doesn't have the address for the router, just an empty line.  I have no problems connecting to the original installation of Wifi (the one with the router).  The initial problem was the range of the E3000N.  My House is only 32 feet wide and I get a signal rooms low only 2 in the linear sense.  I tried to improve it with the WAP610N and the WET610N.  Both were suggested by technical support.  The firmware is already reflashed and changed settings on several occasions by technical support.  Any help would be appreciated.

    Thank you, Louise

    Thank you for your suggestions, but this has not worked for me.

    As soon as I changed the name of the AP for the name of the router, I had conflicts.

    I have been unable to solve it myself as I could no longer access the configuration page for the access point or bridge.

    After 2 hours with a very patient man, I am now able to use my system again.  He had to reset the two devices and the re - set.

    It seems to work as expected for the moment.  I don't have to use the static IP settings in my I - Pad.

    Thanks again for your contribution.  I appreciate the responses.

    Louise

  • I can not compile for iOS more with Flex and AIR 3.8

    Hello team Adobe and others.

    I use for my business framework 4.10 Apache projects Flex and adobe Air 3.8.

    I always had problems to compile and publish iOS apps (with Air 3.5 front), but with AIR 3.8, it was a miracle, I compile my projects without error on Windows... until today.

    I am running this command in DOS to compile my project:

    "C:\Program Files\Java\jre7\bin\java.exe" - jar "C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\4.10 - 3.8\lib\adt.jar AIR ' - package - target the ipa-app-store - hideAneLibSymbols non - implementation service-profile 'S:\Directory_to_MobileProvision.mobileprovision' - shops pkcs12 - keystore"S:\Directory_to_Certificats_ios.p12"- storepass my_private_password Proginov_FVTE_V45.ipa Proginov_FVTE_V45 - app.xml active com config_app.xml [email protected] Proginov_FVTE_V45.swf - extdir"S:/Directory_to_ANE/air_3.8_pnv_3.00 ".

    And I get this result after 1 hour of compilation:

    Bug iOS.png

    If you want, I can send you my file bin-release-temp and DONKEY to try for yourself, but I need to private messaging, because I don't want to publish my project private to everyone.

    Thank you

    Could you please try the growing size of the java heap in your order.

    for example, "C:\Program Files\Java\jre7\bin\java.exe" - Xmx2048m-jar...

  • If DW 20141 cc does not support the database, connection, server behavior, and PHP/MySQL require it, but using Adobe Extensions Mngr IS DO NOT recommended, then TOOLS WHICH does allow us to develop a database with DW?

    I use windows DW 20141 cc. I'm following lynda.com tutorials to create a website with PHP and MySQL database. I learned that I have to download Adobe Extension Mngr database active, BINDING, panels of SERVER BEHAVIOR, what I've done. BUT NOW, I've BEEN ADVISED NOT to USE THESE TOOLS for all new development. If this is the actually the case, then THAT TOOLS DO I USE to develop a Web site that has a database?

    Ideally, you code your own with (improved) MySQLi or PDO.

    http://code.tutsplus.com/tutorials/PDO-vs-mysqli-which-should-you-use--NET-24059

    Help the Web offer also an Extension of commercial MySQLi for DW server behaviors replace the obsolete.

    MySQLi server behaviors. Dreamweaver extension | WebAssist

    Nancy O.

  • Flex and php?

    I tried to put a contact form, a Messenger on my website contact page, so now you use php as a background that transfer of email and logic while flex made use of rich user interface,

    on the server where should I put the php file? the server must be supoprting right php scripts? even if the server, mine zymichost supports php, my form of contact e-mail system does not work?

    is there a difference with php on the server files? because my application converts the format swf, exactly how it works with php? Help, please...

    You can do with php.

    POST, fake useproxy method

    but AMFPHP is a better client server communication protocol available for developers of Flash Player.

    For more details www.amfphp.org here you can find examples, as well as the configuration.

    hope this post helps u.

  • Intermittent Internet connection with WPC100 and WRT110

    I bought a router WRT110 wireless several weeks ago.  Used with my WPC55AG without any problem at all.  I liked the wireless-N, so I decided to upgrade to a Wireless N notebook card and bought a WPC100.  I can still connect to the router with the signal strength of 100%.  However, when you try to access the Internet, sometimes I can connect to Web sites, but I regularly get an Internet Explorer error message cannot connect to the internet, even if the signal is always 100%.

    Tried to go back to my WPC55AG and not to make any connection error messages.  Tried to connect to my router with my PSP and not to make any connection error messages.  Connected to another router wireless that didn't have WPA or WEP using my WPC100 and did not have any connection error messages...

    Any ideas?  Thank you!

    I changed my router settings as you suggested, with the exception of the security mode - I left it to WPA - 2 because I wanted the extra security.  It worked fine for a day, until I restarted my laptop...

    Then I tried to use your router suggested settings and set the WPA security mode and it works very well for 2 days and several reboots!

    Thank you very much for your help with this!

  • WRT160NL connection with n and USB connection problem

    Hi guys,.

    I have the Linksys WRT160NL router and I have two fundamental problems with that:

    1. I have a laptop HP with n on its wireless card connection. (it's an HP probook 4720 s). So I know that this laptop has ability. n I have the most recent driver vor he 3.1.18. The thing is that my Linksys router does not transmit sound wireless n, just g...

    What should I do to make it work with n as well?

    2. the second issue is that the USB connection is working in a very strange way. I have attached an ADATA with USB 3.0 HDD external, even. He works in 2.0.

    I have a lot of WAV files on it and when I stream to my receiver files pay with much intrerupptions, break ups. MP3 work very well.

    I don't know what to do to solve this 2 problems... Maybe someone could help me...

    Thank you

    Try changing some settings on the router wireless.

    Connect the computer to the router with the Ethernet cable. Open the router configuration page. Go to the wireless tab and the manual value configuration view. Change the channel to 11 wireless. Make sure that the network is set to mixed. Save the settings.

    Go to wireless security sub tab and change the wireless WPA2 with AES security mode. Save the settings.

    Click the tab under advanced wireless settings change the tag to 75 interval, RTS threshold and fragmentation to 2304. Save the settings. Now try to connect to the network again.

  • Name of the data connection with ConsoleDeviceName and CanonicalName store

    Hi people,

    I would like to connect 3 parameters, ConsoleDeviceName, CanonicalName, and 'name of the data store.

    The first two times (ConsoleDeviceName, CanonicalName) can I get with ' Get-VMHost "MyESXHost |" Get-ScsiLun.

    But how can I get the name of the data store?

    http://communities.vmware.com/servlet/JiveServlet/downloadImage/7964/12-9-2009+1-11-11+PM.png

    Thanks for help

    Hello

    In order to get the name of the data store for each unit number logical you should review the information of measurement of the disk for each data store attached to the host and link them using canonical names of lun. VMFS datastore disk measurement information are available in the HostScsiDiskPartition object. Here's a code example how to do this:

    $h = Get-VMhost "MyESXHost"
    
    # collect VMFS datastore name and extent cannonical names into a hashtable
    $dsLunList = @{}
    $dsView = $h | Get-Datastore | ? {$_.Type -eq "VMFS"} | Get-View
    foreach ($ds in $dsView) {
         foreach ($diskExtent in $ds.Info.Vmfs.Extent) {
              $dsLunList[http://$diskExtent.DiskName|http://$diskExtent.DiskName] = $ds.Info.Name
         }
    } 
    
    #populate datastore name for each lun if available
    $lunList = @()
    $h | Get-ScsiLun | % {
         $lun = "" | select ConsoleDeviceName, CanonicalName, DatastoreName
         $lun.ConsoleDeviceName = $_.ConsoleDeviceName
         $lun.CanonicalName = $_.CanonicalName
    
         if ($dsLunList.ContainsKey($_.CanonicalName)) {
              $lun.DatastoreName = $dsLunList[http://$_.CanonicalName|http://$_.CanonicalName]
         }
    
         $lunList += $lun
    }
    
    $lunList
    

    Kind regards

    Yasen

  • High Score Table: writing a Simple with Flash and PHP text file

    I'm having a problem getting Flash to work with PHP that I need Flash to read and write to a text file on a server to store data simple name partition for a games Hi score table. I can read the text file in Flash fairly easily, but I also have to write to the file when a new high score is reached, so I need to use PHP to do that. Can I send data from flash to php by POST file, but so far it does not. The PHP file is confirmed that the work that I added an echo in the file that displays a message to verify that the server is running PHP - files were also uploaded to a remote server so I could test them correctly. Flash code is as follows:

    FileWriter php

    var myLV = new LoadVars();

    sendData() {} function

    //sets variable 'hsdata' to send to php

    myLV.hsdata = myText;

    myLV.send ("hiscores.php");

    }

    I believe that it sends the variable "myText" in the php file in a variable called 'hsdata' I want the php file to write to a text file. The mytext variable is just a long chain that has all of the partitions and the names in the scores. OK, XML would be best way to do it, but for the speed, I want to just get the basic features of work, so store a shot of simple text is sufficient for now. The PHP code that reads the Flash variable "hsdata" and wrote for the "scores.txt" text file is due to:

    <? PHP

    sets the variable to the data posted from flash

    $flashdata = $_POST ['hsdata'];

    File Manager opens the file and clears all content with arg w

    $fh = fopen ("scores.txt", "w");

    Adds data to the file

    fwrite ($fh, $flashdata);

    closes the file

    fclose ($fh);

    echo "php file works;

    ? >

    Any help with this would be greatly appreciated - once I get php to write text files simple I should be ok. Thank you.

    var outLV = new LoadVars();

    var inLV = new LoadVars();

    sendData() {} function

    outLV.hsdata = 'Hello from Flash';

    outLV.sendAndLoad ("http://www.mysite.com/hiscores/test23.php", inLV,"POST");

    }

    inLV.onLoad = {function (success)}

    If (success) {}

    sets the dynamic text box to show the variable sent by php

    statusTxt.text = this.phpmess;

    } else {}

    statusTxt.text = 'No Data Received';

    }

    };

    It works well and function of inLV.onLoad of the reports it receives data, but does not display the variable received from PHP. The PHP file is like this:

    <>

    $mytxt = $_POST ['hsdata'];

    $myfile = "test23.txt";

    $fh = fopen ($myfile, 'w');

    Adds data to the file

    fwrite ($fh, $mytxt);

    closes the file

    fclose ($fh);

    $mess = "Hello there php ';

    echo "phpmess =". "." $mess;

    ?>

  • Problem with HTML and PHP form...

    Hello

    Can someone help me please...

    Im a beginner at Web design and have created a few sites only, but when it comes in contact with the page it always have problems me. I know this must be a simple process but not for me lol.

    IM so frustrated. I finished the site transferred, but the contact page will not work. I download the two html file containing the form and the php in the folder file root on the server (which supports php), and again, it won't work. I went over and over the script but I can't see where im going wrong.

    Please someone take a look and the two files one see if they can pinpoint where im going wrong?

    I would be so grateful!

    See you soon

    Dan

    You should really check Forms To Go. I use this software to treat all of my forms. I can easily apply validation, configure the e-mail settings and redirect to a thank you page using its graphic interface without having to write a single line of php code. The unregistered (free version with limited functions) will do everything you need.

Maybe you are looking for

  • MacBook Pro (13 inch, early 2011)

    I have a MacBook Pro (13-inch, bought in early 2011). The specifications are... OS X Version 10.10.5, Yosemite MacBook Pro (13 inch, early 2011) Processor: Intel Core i5 to 2.3 GHz My Mac has the ability to me safely upgrade my system for macOS Sierr

  • How long does it take for me to access my security questions after making several attempts to understand my security questions?

    I was to know to connect another device to access my apple account, but I had to meet my security questions to allow me to connect another device apple I pod touch 5. I made many attempts to answer the questions of security and now I can't do any mor

  • Equium A60 - 173 memory Question

    Hey guys, I just used the recovery disk to reinstall windows xp after that I had a few problems and now when I look at the information system, it is said that the total physical memory is 512 MB, but the available physical memory is only 151 MB I was

  • Satellite M70-122 - I need the driver for the multimedia function keys

    Hi all... My problem I think it's pretty simple for you: do not work the buttons react media works as stop, play, previous, next song. I think that I don't have a driver.Should which driver I install to run them? They stop working, after that my pc h

  • Directory menu

    I have created custom controls for a labview project that I'm trying.  I try to keep all the files and folders in the same location.  I would like to add the location of the file to the path for the palette menu so that my custom control see toward t