Session variables in J2EE used in Flex

151 views
Skip to first unread message

Priyank Kapadia

unread,
Apr 1, 2008, 8:16:15 AM4/1/08
to Flex India Community
Hi

I want to access the session variable created in my servlet through
flex application.

eg.

servlet1

HttpSession session = request.getSession();
session.setAttribute("somesession", "somevalue");


mxml

I have to access the session of servlet1 in flex. Is it possible? Any
idea of it is done?

Saravanan

unread,
Apr 2, 2008, 5:35:57 AM4/2/08
to Flex India Community
i am also want to do send session variables from php to flex...
anybody using this


On Apr 1, 5:16 pm, Priyank Kapadia <priyankomnipot...@gmail.com>
wrote:

Abdul Qabiz

unread,
Apr 4, 2008, 12:53:37 PM4/4/08
to flex_...@googlegroups.com
You can write another servlet/php to access those via HTTPService/AMF...

You have to write code to do that... What you asking for is not standard - neither html/ajax or http.. Session Variables are supposed to be on server.. Cookies/SO reside on client...

But you can do that, write some more code.

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

Saravanan

unread,
Apr 6, 2008, 4:36:22 AM4/6/08
to Flex India Community
Thanks for the reply
:)

what i want is to check user has logged in or not inside flex
application which is in php wrapper... i will control users in php
using session but how to check that inside flex

i am not clear with that

:(

Kapil Viren Ahuja

unread,
Apr 7, 2008, 1:15:48 AM4/7/08
to Flex India Community
There is a simpler way.... You can set up a POJO and the define that
as an endpoint over an AMF channel. Using that you can make all the
calls you need to make to HttpSession

Cheers

Saravanan

unread,
Apr 7, 2008, 5:40:01 AM4/7/08
to Flex India Community
Any samples or examples files there .... will be helpful for me :)

Saravanan

unread,
Apr 7, 2008, 6:02:15 AM4/7/08
to Flex India Community

abhishekchess1

unread,
Apr 7, 2008, 7:10:39 AM4/7/08
to Flex India Community
there is no session variables in flex, u can use ShareObject which
works like browser's cookies and take data from session in it.It works
like login in gmail site.



On Apr 7, 3:02 pm, Saravanan <saras...@gmail.com> wrote:
> Oh thsis is simple that i thought
>
> http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdeta...
>
> http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdeta...

abhishekchess1

unread,
Apr 25, 2008, 5:36:09 AM4/25/08
to Flex India Community
is anyone know how to maintain session variables in flex with .net
Reply all
Reply to author
Forward
0 new messages