<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8840085855436806841.post7581180559588377798..comments</id><updated>2009-06-05T06:04:56.938-04:00</updated><title type='text'>Comments on entrepreneurial musings: Adobe Flex + J2EE Security - Mismatched SessionID!...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.augmentedfragments.com/feeds/7581180559588377798/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/7581180559588377798/comments/default'/><link rel='alternate' type='text/html' href='http://blog.augmentedfragments.com/2008/06/adobe-flex-j2ee-security-mismatched.html'/><author><name>Ryan</name><uri>http://www.blogger.com/profile/12120844691062261364</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8840085855436806841.post-5241978248345232614</id><published>2009-06-05T06:04:56.938-04:00</published><updated>2009-06-05T06:04:56.938-04:00</updated><title type='text'>Hi subhash,

It was fairly simple.  I created a wr...</title><content type='html'>Hi subhash,&lt;br /&gt;&lt;br /&gt;It was fairly simple.  I created a wrapper class around a ConcurrentHashMap that exposed three static methods: put, get and expire.  Passing an object to put would return a unique key, which could later be used to retrieve that object.  From there, get and expire worked just like Map&amp;#39;s get and remove.  &lt;br /&gt;&lt;br /&gt;So, I used it like this.  When the user hit the servlet the first time (to load the upload page), I had the right sessionId and thus the right user.  So, I stored the user in the class above and got a key to fetch it later.  I then passed this key to my flex app, which would return the key as part of the multi-part upload with the file.  Then I&amp;#39;d just look up the user by key, instead of relying on the incorrect the sessionId that came with the file upload.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/7581180559588377798/comments/default/5241978248345232614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/7581180559588377798/comments/default/5241978248345232614'/><link rel='alternate' type='text/html' href='http://blog.augmentedfragments.com/2008/06/adobe-flex-j2ee-security-mismatched.html?showComment=1244196296938#c5241978248345232614' title=''/><author><name>Ryan</name><uri>http://www.blogger.com/profile/12120844691062261364</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05278166256997021406'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.augmentedfragments.com/2008/06/adobe-flex-j2ee-security-mismatched.html' ref='tag:blogger.com,1999:blog-8840085855436806841.post-7581180559588377798' source='http://www.blogger.com/feeds/8840085855436806841/posts/default/7581180559588377798' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8840085855436806841.post-8588739518265981240</id><published>2009-06-05T05:51:05.686-04:00</published><updated>2009-06-05T05:51:05.686-04:00</updated><title type='text'>Ryan,

What is the other single token approach tha...</title><content type='html'>Ryan,&lt;br /&gt;&lt;br /&gt;What is the other single token approach that you follow? I am trying to integrate this into an existing application.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/7581180559588377798/comments/default/8588739518265981240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/7581180559588377798/comments/default/8588739518265981240'/><link rel='alternate' type='text/html' href='http://blog.augmentedfragments.com/2008/06/adobe-flex-j2ee-security-mismatched.html?showComment=1244195465686#c8588739518265981240' title=''/><author><name>subhash</name><uri>http://www.blogger.com/profile/17023323960644613480</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.augmentedfragments.com/2008/06/adobe-flex-j2ee-security-mismatched.html' ref='tag:blogger.com,1999:blog-8840085855436806841.post-7581180559588377798' source='http://www.blogger.com/feeds/8840085855436806841/posts/default/7581180559588377798' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8840085855436806841.post-4446564809147545921</id><published>2008-12-26T17:49:00.000-05:00</published><updated>2008-12-26T17:49:00.000-05:00</updated><title type='text'>Never figured one out... I ended up implemented an...</title><content type='html'>Never figured one out... I ended up implemented an alternative authentication system to use just for this problem that was based on single-use tokens.  I don't know what application server you use, but you'd have to enable session tracking via url parameter for the method you tried to work.  From what I know, Tomcat and Glassfish, at least, don't look for the session ID in the url by default.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/7581180559588377798/comments/default/4446564809147545921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/7581180559588377798/comments/default/4446564809147545921'/><link rel='alternate' type='text/html' href='http://blog.augmentedfragments.com/2008/06/adobe-flex-j2ee-security-mismatched.html?showComment=1230331740000#c4446564809147545921' title=''/><author><name>Ryan</name><uri>http://www.blogger.com/profile/12120844691062261364</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05278166256997021406'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.augmentedfragments.com/2008/06/adobe-flex-j2ee-security-mismatched.html' ref='tag:blogger.com,1999:blog-8840085855436806841.post-7581180559588377798' source='http://www.blogger.com/feeds/8840085855436806841/posts/default/7581180559588377798' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8840085855436806841.post-7316824206143461310</id><published>2008-12-25T10:57:00.000-05:00</published><updated>2008-12-25T10:57:00.000-05:00</updated><title type='text'>Hi, you have posted a problem...so what is the sol...</title><content type='html'>Hi, you have posted a problem...so what is the solution for this one...I am also facing the same problem...even I have passed JSESSIONID in URL...like this -&amp;gt; var request:URLRequest = new URLRequest(FILE_UPLOAD_URL + &amp;quot;;JSESSIONID=&amp;quot; + Application.application.parameters.jsessionid);</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/7581180559588377798/comments/default/7316824206143461310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/7581180559588377798/comments/default/7316824206143461310'/><link rel='alternate' type='text/html' href='http://blog.augmentedfragments.com/2008/06/adobe-flex-j2ee-security-mismatched.html?showComment=1230220620000#c7316824206143461310' title=''/><author><name>mohan</name><uri>http://www.blogger.com/profile/11584697804536700931</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16114293241497785458'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.augmentedfragments.com/2008/06/adobe-flex-j2ee-security-mismatched.html' ref='tag:blogger.com,1999:blog-8840085855436806841.post-7581180559588377798' source='http://www.blogger.com/feeds/8840085855436806841/posts/default/7581180559588377798' type='text/html'/></entry></feed>