Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Flex
|
Flex Discuss the Adobe Flex programming language
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flex section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 23rd, 2008, 09:43 AM
Registered User
 
Join Date: Aug 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default secure Flex application by providing Login system with Session

Hello Friends,
I have developed one application in Flex with PHP backend system.
I want to secure this application by providing user login system. Which user has access of which project id is stored in database(postgresSql).
Main problem which I faced is that After logged in once, if i refresh or reload application it ask again for Login.

Please help me to provide authentication using PHP session in my Flex application.
you can also contact me on [email protected]

Thank you!!
 
Old December 23rd, 2008, 12:31 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Cross post.... Please see: secure Flex application by providing Login system with Session

Please don't cross post; your message will be read anyway....

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old December 23rd, 2008, 06:48 PM
jminatel's Avatar
Wrox Staff
Points: 18,059, Level: 58
Points: 18,059, Level: 58 Points: 18,059, Level: 58 Points: 18,059, Level: 58
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Posts: 1,906
Thanks: 62
Thanked 139 Times in 101 Posts
Default

Actually, of the 4 places this was posted, this seems the best. I'll leave it open for response here.
__________________
Jim Minatel
Associate Publisher, WROX - A Wiley Brand
Did someone here help you? Click on their post!
 
Old March 2nd, 2009, 11:15 AM
Authorized User
 
Join Date: Mar 2009
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default flex php sessions

Hello,
If your php session is not staying set:
- Make sure you have:
session_start();
at the top of all php files.
Once they login set yoru session var like this example:
$_SESSION["sessionid"] = $user_id;
- Make sure your sessions are enabled correctly in your apache/php config files.

I tested a "reload" for my flex application. The php session remained fine but upon reload my application loads the login screen by default. Now I could change that if needed, but why reload anyway? If you are needing to refresh data, use the flex callLater() function after saving data.
-Mark





Similar Threads
Thread Thread Starter Forum Replies Last Post
Application using FLEX and ASP.net tejas83 Flex 1 January 30th, 2008 10:25 PM
Show videos in FLEX Application abhishekchess1 ASP.NET 1.0 and 1.1 Professional 1 October 4th, 2007 10:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.