This content has been marked as final. Show 3 replies
What is yor type of persistent object ?
When you refresh try to find your persistent object. If your object exist and it is good, set the viewStack to the good view.
<mx: Application ... creationComplete=hello()>
private function hello():void
<-- cookie test or session test-->
with LogIsAlright : Container (Canvas, HBox,...)
I did try that test, but the object does not exist.
I just have a user object that exists in the <mx:Application> tag. I thought about using a cookie or a SharedObject to store some user information (no passwords or anything).
I'm not sure if that is the best way to persist an object.
I guess I'm asking what is the best practices for persisting a Flex "session" across browser refreshes?
When the user hits refresh i want to maintain the application state.
I experimented with a SharedObject and that seems to work quite well. Is there a way to automatically expire a SharedObject?