473,396 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Assuming an existing session

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
Feb 6 '07 #1
1 1495
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
Feb 9 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Margaret MacDonald | last post by:
I was about to post a note here asking whether anyone could suggest why session_start() would create a new session each time, rather than reloading the existing one. My development environment is...
2
by: Terry | last post by:
When launching our application with Internet Explorer already opened, but not pointing to our web server, the session variables disappear. If you open I.E. after launching our app, it works fine....
1
by: Yaro | last post by:
Hello DB2/NT 8.1.6 In procedure (SQL) I declare GLOBAL TEMPORARY TABLE. Sometimes this procedure is called twice a session and error creating table occure. I know, I can create table on session...
0
by: Larry Lau | last post by:
Hi, I would like to know if it is possible to launch a new browser instance from an existing browser instance with a separated newly created session. window.open(url) already keep you in the...
2
by: Nanker | last post by:
Our existing ASP.NET web application does store a session ID in the cookies (ASP.Net_SessionID) for a logged in user. A new requirement has been stated that we need to be able to send a customer an...
0
by: Gozirra | last post by:
I have a Windows forms application. It utilizes a web service in order to retrieve information. The web service runs in a server farm which is load balanced by a router based on session token. ...
2
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. If I place an object in session and then later attempt to perform a type conversion from session to a local variable and find that the session variable equals "Nothing", can I assume that a...
4
by: Alex | last post by:
Hello, This is a follow-up to my earlier post about having issues with our application pool recycling. We currently use Session State InProc, but if I were to choose to move the existing...
2
by: sa6113 | last post by:
I use this code : hostname = "192.168.1.4" username = "test" port = 22 password = '123456' # now connect try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.