Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Flex
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 23rd, 2008, 08:43 AM
Registered User
 
Join Date: Aug 2007
Location: Surat, Gujarat, India.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to tejas83
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 tspatel83@gmail.com

Thank you!!
__________________
Tejas Patel.
Reply With Quote
  #2 (permalink)  
Old December 23rd, 2008, 11:31 AM
Imar's Avatar
Wrox Author
Points: 67,317, Level: 100
Points: 67,317, Level: 100 Points: 67,317, Level: 100 Points: 67,317, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,230
Thanks: 66
Thanked 1,416 Times in 1,396 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!
Reply With Quote
  #3 (permalink)  
Old December 23rd, 2008, 05:48 PM
jminatel's Avatar
Wrox Staff
Points: 13,964, Level: 51
Points: 13,964, Level: 51 Points: 13,964, Level: 51 Points: 13,964, Level: 51
Activity: 9%
Activity: 9% Activity: 9% Activity: 9%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,836
Thanks: 51
Thanked 105 Times in 81 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
Wiley Technology Publishing
WROX Press
Blog: http://p2p.wrox.com/content/blogs/jminatel
Wrox online library: http://wrox.books24x7.com
Wrox on Twitter: http://twitter.com/wrox
Did someone here help you? Click on their post!
Reply With Quote
  #4 (permalink)  
Old March 2nd, 2009, 10: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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 07:35 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.