So let’s say you have an initial web service code that gives you an authentication token.  Maybe you want to pass that token as a SOAP header?  Check out http://livedocs.macromedia.com/flex/15/flex_docs_en/00000767.htm for how you can use SOAP headers in Flex.  If you don’t want to use a header you could simply make sure that each method on your web service takes the token as one of its parameters and then make sure your web service requests pass that token.

 

Now in both these cases it is expected that you will get the information through your web service normally (a few pages after that link you can see how to read a SOAP header that was returned to you if it’s important).  If you use BASIC authentication to access your WebService you cannot get any information from the browser (like cookie info) to pass into your web service without writing _javascript_ on your HTML page.

 

I’m not sure what the best method is going ot be for you, but I think SOAP headers are a common way of approaching this problem.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of Bikram Sahu
Sent: Sunday, June 26, 2005 10:12 PM
To: [email protected]
Subject: RE: [flexcoders] problem in storing session object in client side

 

 Thanks matt,

   

              yesterday i have read the flex book of macromedia that given the secure services of web services also i am developing a web side regarding which use a lot of web services so i want that for every request for web services it requires the authorization token which was given at login time after successful so please guide me how can i develop a secure site also  is it better to use session object or any other option is available laso tell me how cai send the token with every request .please guide me.

 

Bikram

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Matt Chotin
Sent: Monday, June 27, 2005 9:29 AM
To: [email protected]
Subject: RE: [flexcoders] problem in storing session object in client side

How is that session data given to you?  Have you looked at stateful classes for RemoteObject, would that be good enough to make sure you Java object is kept in sync?  Do you simply want to hold onto the session information for the life of your app or are you looking to persist it on the client?  If persisting the information you need to look into local shared objects.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of Bikram Sahu
Sent: Saturday, June 25, 2005 12:26 AM
To: [email protected]
Subject: [flexcoders] problem in storing session object in client side

 

Hi,

    I have done much things in flex but recently i want to store the token in client side after user authentication it gives a token which i want to store in flex side and reuse it when user send  any other request i have to send it with the request please help me regarding this matter i also try with sessions but i can not under stand where i have to store that value for using session obect  what is the steps and how can i proceed or is there any other option available to do that please help me.

 

Bikram



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to