Well, he wants to get the credentials on server.

I would say, why don't you send credentials to your own servlet on server
instead of relying on total automatic solution (FlexContext). You can infact
extend FlexContext to do lot more with it?

-abdul

On Thu, Jul 2, 2009 at 5:35 PM, Ravi Mishra <[email protected]> wrote:

>
> You can store those credentials in sharedObject which resides in the
> clients machine. And you can use those sharedObjects for session
> information.
>
> HTH,
>
> -Ravi
>
> On Jul 2, 4:50 pm, Deepa <[email protected]> wrote:
> > Hi,
> >
> > I am working with sessions and authentication for the first time.
> > I need assistance with using FlexContext to read the session
> > attributes and user
> > Information. I want to know, how and from where FlexContext gets the
> > session
> > information from? I have a flex login page, the user id and password
> > are
> > submitted via URLVariables - j_username and j_password. The Tomcat
> > validates it,
> > using custom JDBCRealm. I now want to capture this user information as
> > well as
> > the session details, such that it is accessible at both the Flex as
> > well as the
> > Java side. I have a java class, in which I am trying to access the
> > HttpServletRequest object and FlexSession object, by doing something
> > like this -
> >
> > HttpServletRequest req = FlexContext.getHttpRequest();
> > FlexSession session = FlexContext.getFlexSession();
> >
> > But both of these throw NullPointerException.
> >
> > Any pointers on how to resolve this issue, would be highly
> > appreciated.
> >
> > Thanks & Regards,
> > Deepa
> >
>


-- 
-abdul
---------------------------------------
http://abdulqabiz.com/blog/
---------------------------------------

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to