PC Review


Reply
Thread Tools Rate Thread

Assuming an existing session

 
 
Mikey C
Guest
Posts: n/a
 
      6th Feb 2007
Hi there,

I am using ASP.NET 2.0.

The problem I am facing stems from the fact that the Flash plugin for
Firefox does not have access to the browser's cookies. The flash
component I am using takes input from the user, and then makes an HTTP
form post based on this input. Because the Flash plugin can't access
the ASP.NET session cookie, it can't pass it through with the post, so
the server processes these posts as if they were on a new session. This
is bad for me because I need to ensure that the user is logged in before
processing these posts. I would add the the Flash plugin for IE *does*
pass through the cookie OK, and everything works as expected (the posts
are processed on the same session on which they were made).

So the simplest approach seemed to be to pass the session ID through on
the querystring, and then somehow in code tell the server to process the
request as if it was on this session (essentially the same as what
happens with cookieless sessions). So I am not trying to share a
session across multiple users, I am trying to maintain session state for
one user across a special HTTP call where cookies are not present. I
want to avoid cookieless sessions if possible, as these would complicate
the design of our site.

ASP.NET clearly has the ability to do this, as at some point in the page
lifecycle, it must read the session ID, either from the querystring
(cookieless) or the cookie, and look up the state based on this cookie
(whether that be in-proc or in a database). What I am asking is, as a
programmer, is this mechanism exposed to me? I've been searching for a
long time for the answer to this question.

Cheers,

Mike
 
Reply With Quote
 
 
 
 
Mikey C
Guest
Posts: n/a
 
      9th Feb 2007
Mikey C wrote:
> Hi there,
>
> I am using ASP.NET 2.0.
>
> The problem I am facing stems from the fact that the Flash plugin for
> Firefox does not have access to the browser's cookies. The flash
> component I am using takes input from the user, and then makes an HTTP
> form post based on this input. Because the Flash plugin can't access
> the ASP.NET session cookie, it can't pass it through with the post, so
> the server processes these posts as if they were on a new session. This
> is bad for me because I need to ensure that the user is logged in before
> processing these posts. I would add the the Flash plugin for IE *does*
> pass through the cookie OK, and everything works as expected (the posts
> are processed on the same session on which they were made).
>
> So the simplest approach seemed to be to pass the session ID through on
> the querystring, and then somehow in code tell the server to process the
> request as if it was on this session (essentially the same as what
> happens with cookieless sessions). So I am not trying to share a
> session across multiple users, I am trying to maintain session state for
> one user across a special HTTP call where cookies are not present. I
> want to avoid cookieless sessions if possible, as these would complicate
> the design of our site.
>
> ASP.NET clearly has the ability to do this, as at some point in the page
> lifecycle, it must read the session ID, either from the querystring
> (cookieless) or the cookie, and look up the state based on this cookie
> (whether that be in-proc or in a database). What I am asking is, as a
> programmer, is this mechanism exposed to me? I've been searching for a
> long time for the answer to this question.
>
> Cheers,
>
> Mike


Agh! So there really is no answer to this? Surely SOMEONE must know?
Just a simple yes or no would be great. It's driving me crazy!

Mike
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assuming a Session Timeout =?Utf-8?B?TWlrZQ==?= Microsoft ASP .NET 2 13th Feb 2007 10:29 PM
Picking Up or Assuming Session??? Gozirra Microsoft ASP .NET 0 8th Oct 2006 03:15 AM
Join existing console session? =?Utf-8?B?SG9vZiBIZWFydGVk?= Microsoft Windows 2000 Terminal Server Applications 5 15th Dec 2004 03:03 PM
Fix: Error connecting to existing session Ian Windows XP Work Remotely 12 8th Apr 2004 03:44 PM
How to start a session from an existing session? Larry Lau Microsoft ASP .NET 0 19th Jan 2004 10:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:45 PM.