Welcome Guest Search | Active Topics | Members | Log In | Register

How does session management work in WebORB? Options · View
vikramrkin
Posted: Tuesday, May 22, 2007 12:00:00 AM
Rank: Newbie Coder
Groups: Member

Joined: 4/20/2010
Posts: 9
Points: 0
Location: US
I am using Flex for the client and ASP.Net for server. I am using
RemoteObject to communicate with the server.

I am wondering how can I achieve session management with this? I
understand how IIS manages session i.e. based on the session ID
received from session cookie and this session cookie being sent by
browser to the web server in HTTP request header.

How does this work with WebORB - Flex client, when I am using remote
object?

Thanks
Vikram
markpiller
Posted: Tuesday, May 22, 2007 12:00:00 AM
Rank: Administration
Groups: Member

Joined: 1/6/2009
Posts: 1,574
Points: -97
Vikram,

WebORB uses .NET (IIS) sessions. You can get access to the current
session using the following API:

Weborb.Util.ThreadContext.currentSession()

The method returns an instance of System.Web.SessionState.HttpSessionState

It is the same session object that all other ASPX pages in the same
application would share.

You can configure your sessions the same way as you normally would
with ASP.NET and WebORB will be using that configuration as well.

Cheers,
Mark

--- In flashorb@yahoogroups.com, "vikram" wrote:
>
> I am using Flex for the client and ASP.Net for server. I am using
> RemoteObject to communicate with the server.
>
> I am wondering how can I achieve session management with this? I
> understand how IIS manages session i.e. based on the session ID
> received from session cookie and this session cookie being sent by
> browser to the web server in HTTP request header.
>
> How does this work with WebORB - Flex client, when I am using remote
> object?
>
> Thanks
> Vikram
>
markpiller
Posted: Tuesday, May 22, 2007 12:00:00 AM
Rank: Administration
Groups: Member

Joined: 1/6/2009
Posts: 1,574
Points: -97
Hi Sam,

Yes, that should work. The value we put into the thread context is the
same reference we get in the http handler. I assume
HttpContext.Current would return the same value.

Cheers,
Mark

--- In flashorb@yahoogroups.com, "Sam Shrefler" wrote:
>
> Mark:
>
> Is it possible to access the session directly through
>
> HttpContext.Current.Session
>
> Rather than through the webOrb API? If so, do you see a reason to
use the
> WebORB API?
>
> Thanks
>
> Sam
>
>
> On 5/22/07, Mark Piller wrote:
> >
> > Vikram,
> >
> > WebORB uses .NET (IIS) sessions. You can get access to the current
> > session using the following API:
> >
> > Weborb.Util.ThreadContext.currentSession()
> >
> > The method returns an instance of
System.Web.SessionState.HttpSessionState
> >
> > It is the same session object that all other ASPX pages in the same
> > application would share.
> >
> > You can configure your sessions the same way as you normally would
> > with ASP.NET <http://asp.net/> and WebORB will be using that
configuration
> > as well.
> >
> > Cheers,
> > Mark
> >
> > --- In flashorb@yahoogroups.com , &quot;vikram&quot;
> > wrote:
> > >
> > > I am using Flex for the client and ASP.Net for server. I am using
> > > RemoteObject to communicate with the server.
> > >
> > > I am wondering how can I achieve session management with this? I
> > > understand how IIS manages session i.e. based on the session ID
> > > received from session cookie and this session cookie being sent by
> > > browser to the web server in HTTP request header.
> > >
> > > How does this work with WebORB - Flex client, when I am using remote
> > > object?
> > >
> > > Thanks
> > > Vikram
> > >
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>
markpiller
Posted: Tuesday, May 22, 2007 12:00:00 AM
Rank: Administration
Groups: Member

Joined: 1/6/2009
Posts: 1,574
Points: -97
Hi Vikram,

Good question. Flash player leverages browser for all HTTP/HTTPS
requests. As a result, when a RemoteObject makes a remoting request,
it will be ultimately issued by the browser. As a result, session
establishment and tracking will be handled between the browser and
IIS. So when it comes to sessions, all the same rules (and workflow)
you have with a traditional asp.net application are applicable to
Flash/Flex clients.

Thanks,
Mark

--- In flashorb@yahoogroups.com, &quot;vikram&quot; wrote:
>
> Hi Mark,
>
> Thanks for the info. I have a basic doubt.
>
> In a normal (non RIA) ASP.Net application, second time a request is
> sent to IIS by the browser (say a submit button click), browser
> embeddes the session cookie into the reques header. This will let the
> IIS to get the session ID and give the corresponding session to the
> request.
>
> How does this work with a flash client and WebORB (on IIS)? Lets say
> I am makng a method call using RemoteObject from my Flex client, does
> the server (IIS) ever receive the session cookie set by server? I
> think it wont, as the cookie really resides with the browser and not
> with the Flash player running in that browser.
>
> What do you think?
>
> Thanks
> Vikram
>
> --- In flashorb@yahoogroups.com, &quot;Mark Piller&quot; wrote:
> >
> > Hi Sam,
> >
> > Yes, that should work. The value we put into the thread context is
> the
> > same reference we get in the http handler. I assume
> > HttpContext.Current would return the same value.
> >
> > Cheers,
> > Mark
> >
> > --- In flashorb@yahoogroups.com, &quot;Sam Shrefler&quot; wrote:
> > >
> > > Mark:
> > >
> > > Is it possible to access the session directly through
> > >
> > > HttpContext.Current.Session
> > >
> > > Rather than through the webOrb API? If so, do you see a reason to
> > use the
> > > WebORB API?
> > >
> > > Thanks
> > >
> > > Sam
> > >
> > >
> > > On 5/22/07, Mark Piller wrote:
> > > >
> > > > Vikram,
> > > >
> > > > WebORB uses .NET (IIS) sessions. You can get access to the
> current
> > > > session using the following API:
> > > >
> > > > Weborb.Util.ThreadContext.currentSession()
> > > >
> > > > The method returns an instance of
> > System.Web.SessionState.HttpSessionState
> > > >
> > > > It is the same session object that all other ASPX pages in the
> same
> > > > application would share.
> > > >
> > > > You can configure your sessions the same way as you normally
> would
> > > > with ASP.NET <http://asp.net/> and WebORB will be using that
> > configuration
> > > > as well.
> > > >
> > > > Cheers,
> > > > Mark
> > > >
> > > > --- In flashorb@yahoogroups.com > 40yahoogroups.com>, &quot;vikram&quot;
> > > > wrote:
> > > > >
> > > > > I am using Flex for the client and ASP.Net for server. I am
> using
> > > > > RemoteObject to communicate with the server.
> > > > >
> > > > > I am wondering how can I achieve session management with
> this? I
> > > > > understand how IIS manages session i.e. based on the session
> ID
> > > > > received from session cookie and this session cookie being
> sent by
> > > > > browser to the web server in HTTP request header.
> > > > >
> > > > > How does this work with WebORB - Flex client, when I am using
> remote
> > > > > object?
> > > > >
> > > > > Thanks
> > > > > Vikram
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
>
shrefler
Posted: Tuesday, May 22, 2007 12:00:00 AM
Rank: Newbie Coder
Groups: Member

Joined: 4/20/2010
Posts: 24
Points: 0
Location: US
Mark:

Is it possible to access the session directly through

HttpContext.Current.Session

Rather than through the webOrb API? If so, do you see a reason to use the
WebORB API?

Thanks

Sam


On 5/22/07, Mark Piller <mark@...> wrote:
>
> Vikram,
>
> WebORB uses .NET (IIS) sessions. You can get access to the current
> session using the following API:
>
> Weborb.Util.ThreadContext.currentSession()
>
> The method returns an instance of System.Web.SessionState.HttpSessionState
>
> It is the same session object that all other ASPX pages in the same
> application would share.
>
> You can configure your sessions the same way as you normally would
> with ASP.NET <http://asp.net/> and WebORB will be using that configuration
> as well.
>
> Cheers,
> Mark
>
> --- In flashorb@yahoogroups.com , &quot;vikram&quot;
> wrote:
> >
> > I am using Flex for the client and ASP.Net for server. I am using
> > RemoteObject to communicate with the server.
> >
> > I am wondering how can I achieve session management with this? I
> > understand how IIS manages session i.e. based on the session ID
> > received from session cookie and this session cookie being sent by
> > browser to the web server in HTTP request header.
> >
> > How does this work with WebORB - Flex client, when I am using remote
> > object?
> >
> > Thanks
> > Vikram
> >
>
>
>


[Non-text portions of this message have been removed]
vikramrkin
Posted: Tuesday, May 22, 2007 12:00:00 AM
Rank: Newbie Coder
Groups: Member

Joined: 4/20/2010
Posts: 9
Points: 0
Location: US
Hi Mark,

Thanks for the info. I have a basic doubt.

In a normal (non RIA) ASP.Net application, second time a request is
sent to IIS by the browser (say a submit button click), browser
embeddes the session cookie into the reques header. This will let the
IIS to get the session ID and give the corresponding session to the
request.

How does this work with a flash client and WebORB (on IIS)? Lets say
I am makng a method call using RemoteObject from my Flex client, does
the server (IIS) ever receive the session cookie set by server? I
think it wont, as the cookie really resides with the browser and not
with the Flash player running in that browser.

What do you think?

Thanks
Vikram

--- In flashorb@yahoogroups.com, &quot;Mark Piller&quot; wrote:
>
> Hi Sam,
>
> Yes, that should work. The value we put into the thread context is
the
> same reference we get in the http handler. I assume
> HttpContext.Current would return the same value.
>
> Cheers,
> Mark
>
> --- In flashorb@yahoogroups.com, &quot;Sam Shrefler&quot; wrote:
> >
> > Mark:
> >
> > Is it possible to access the session directly through
> >
> > HttpContext.Current.Session
> >
> > Rather than through the webOrb API? If so, do you see a reason to
> use the
> > WebORB API?
> >
> > Thanks
> >
> > Sam
> >
> >
> > On 5/22/07, Mark Piller wrote:
> > >
> > > Vikram,
> > >
> > > WebORB uses .NET (IIS) sessions. You can get access to the
current
> > > session using the following API:
> > >
> > > Weborb.Util.ThreadContext.currentSession()
> > >
> > > The method returns an instance of
> System.Web.SessionState.HttpSessionState
> > >
> > > It is the same session object that all other ASPX pages in the
same
> > > application would share.
> > >
> > > You can configure your sessions the same way as you normally
would
> > > with ASP.NET <http://asp.net/> and WebORB will be using that
> configuration
> > > as well.
> > >
> > > Cheers,
> > > Mark
> > >
> > > --- In flashorb@yahoogroups.com 40yahoogroups.com>, &quot;vikram&quot;
> > > wrote:
> > > >
> > > > I am using Flex for the client and ASP.Net for server. I am
using
> > > > RemoteObject to communicate with the server.
> > > >
> > > > I am wondering how can I achieve session management with
this? I
> > > > understand how IIS manages session i.e. based on the session
ID
> > > > received from session cookie and this session cookie being
sent by
> > > > browser to the web server in HTTP request header.
> > > >
> > > > How does this work with WebORB - Flex client, when I am using
remote
> > > > object?
> > > >
> > > > Thanks
> > > > Vikram
> > > >
> > >
> > >
> > >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
yemulss
Posted: Friday, August 09, 2013 5:07:11 AM
Rank: Newbie Coder
Groups: Member

Joined: 8/6/2013
Posts: 1
Points: 15
Location: Solapur, India
markpiller wrote:
Vikram,

WebORB uses .NET (IIS) sessions. You can get access to the current
session using the following API:

Weborb.Util.ThreadContext.currentSession()

The method returns an instance of System.Web.SessionState.HttpSessionState

It is the same session object that all other ASPX pages in the same
application would share.

You can configure your sessions the same way as you normally would
with ASP.NET and WebORB will be using that configuration as well.

Cheers,
Mark

--- In flashorb@yahoogroups.com, &quot;vikram&quot; wrote:
>
> I am using Flex for the client and ASP.Net for server. I am using
> RemoteObject to communicate with the server.
>
> I am wondering how can I achieve session management with this? I
> understand how IIS manages session i.e. based on the session ID
> received from session cookie and this session cookie being sent by
> browser to the web server in HTTP request header.
>
> How does this work with WebORB - Flex client, when I am using remote
> object?
>
> Thanks
> Vikram
>


How to do this? what is session name?, I tried for getting session value of your suggestion, but getting error that is "Object reference not set to an instance of an object"

any suggestions or help is greatly appreciated.

Regards
sham
yemulss
Posted: Friday, August 09, 2013 6:11:04 AM
Rank: Newbie Coder
Groups: Member

Joined: 8/6/2013
Posts: 1
Points: 15
Location: Solapur, India
Mark said- "WebORB uses .NET (IIS) sessions. You can get access to the current
session using the following API:

Weborb.Util.ThreadContext.currentSession()"

How to do this? what is session name?, I tried for getting session value of your suggestion, but getting error that is "Object reference not set to an instance of an object".

Regards
sham
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v4.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.
This page was generated in 0.170 seconds.