user authentication


i coldfusion programmer , new flex , wondering if me out. converting coldfusion app flex , dont understand user authentication in flex. have looked @ jamjar app , want similar.

1. how popup login screen when app loaded? need make session timeout after 20 minutes of no activity , make login screen pop up.

2. how user authentication work in flex? want able same thing in coldfusion. need able check user credentials against database , store them in session somehow. roles database too. there better way accomplish in flex?

3. should use if statements control user can see/do in app? or there better way in flex?

i definetly think adobe needs go in more detail since 1 of important part of application.

thanks help.

this can handled couple of different ways, think. can use cfml page authenticate user against database , pass information (such user id, user name, access control variables, etc.) flex application in html wrapper loads swf file (using flashvars). these variables accessed in application.application.parameters scope in action script. documentation on how can found here:

http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=l ivedocs_parts&file=00001003.html

i can't see why would'nt able similar flex login screen using view states and/or transitions. you'd make remote call database , store results in public variables in application determine access within application.

if find better way handle this, let me know. now, method i'll use.

good luck,
m. mcconnell


More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support