473,395 Members | 1,418 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,395 software developers and data experts.

losing cookies

Hiyas,

I've been banging my head against a brick wall for the last few days
trying to work out why some of my code doesnt work.

I have an ASP/ASP.NET application (website) that is the was previously
simply an ASP site. The first thing we have done is moved an old C++
COM object that managed the applications security into a more OO
structure and also into the .NET environment - its now a number of C#
classes in a Service layer of the new site.

As a result, a few of the old ASP include pages were modified to
instantiate a different COM object that is simply the appropriate
assembly registered with COM using RegASM. This works with no problems.

However, I have just created an ASPX page that is displayed after the
user logs in, which does pretty much the same thing as its ASP
counterpart. This page has 4 frames, 1 for a logo, 1 for a navigation
menu, another for tabs and the last is the 'main' display area. The C#
code behind the page sets these frames source based upon the user who
has logged in etc. The ASPX page authenticates the user using the same
assemblies as the ASP pages and this all works properly. However, each
of the frames is pointed at an ASP page which then do their own security
checks via the same include file I mentioned earlier.

So whats the problem? Well, the new security assembly simply acts as a
remote proxy to a webservice that is hosted by the site which implements
teh actual logic for each method. A session cookie is added to the soap
packet that is sent to the webservice so the webservice can then
retrieve the session state from an Oracle/SQL Server database.

When called from an ASP page or an ASPX page this all works fine. But,
when called from the ASP pages embedded in the ASPX pages' frames, the
cookie gets lost somehow. I've added a tonne of debugging code to make
sure the cookies are actually added and that they are correct before the
SOAP packet is sent, but when I check the
HttpContext.Current.Request.Cookies collection in the webmethod of the
webservice, there are no cookies.

I'm assuming this is something to do with executing the ASP pages within
the frames of the ASPX page but cannot find any real reason why this
won't work.

Any help would be appreciated.

Cheers,

Ed
Nov 23 '05 #1
0 1399

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

Similar topics

7
by: vivek | last post by:
Do any of you guys have any idea what might be the reason for losing session variables, i was working on a page where i had to stroe a array in a session(trust me that was the only 'way' i could...
0
by: mbosco51 | last post by:
I know this is a common thread, but I seem to be losing session variables on my website. I read through everything I could find, including this link: http://aspfaq.com/show.asp?id=2157, but cannot...
9
by: Jimmy Junatas | last post by:
When we open a window (using client-side jscript ie. window.open("/Site/Popup.aspx?...",...)) from Page1.aspx, the called page Popup.aspx does not have access to the Session variables present in...
4
by: Stephen | last post by:
I have a .NET (1.1 framework) application that is losing a session variable on only a few PC's. The main page is loading up in a frame in a Portal application. On the Page_Load it stores an...
9
by: Adrian Parker | last post by:
We have a website that works everywhere but on a few PCs on this one site.. Asp.Net 1.1 Server = Windows 2003 Client = XP In the web.config we use - cookieless="false" in the browser settings...
0
by: Ed Douglas | last post by:
Hiyas, I've been banging my head against a brick wall for the last few days trying to work out why some of my code doesnt work. I have an ASP/ASP.NET application (website) that is the was...
9
by: Schraalhans Keukenmeester | last post by:
I am stomped with the following problem: I have a script start.php and a second script proceed.php Relevant (and working) sections of the code: start.php <?PHP start_session();
2
by: David | last post by:
Using VS2005 and ASP.Net. I am going between 2 aspx pages. I set cookies in page 1, go to page 2 and then return to page 1 via postBackURL. When I get back to page 1 all of the cookie values are...
5
by: bgold12 | last post by:
When a user logs onto my site, I set some session data using php: .... session_start(); .... $_SESSION = 'value'; .... From what I understand, this should store the session data (i.e. the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.