473,396 Members | 1,774 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.

Mixed ASP and ASP.NET Site Session Timeout

I am trying to build a mixed site of ASP and ASP.NET. I am having trouble
keeping the ASP session from timing out when using just the ASP.NET pages.
The ASP.NET pages has a Master Page with an iFrame that loads an ASP page,
however this is not keeping ASP from timing out. Does anyone know how to work
around this?
Aug 8 '06 #1
6 1578
ASP and ASP.NET do not share the *same* session object. You must persist
your data in some other way if you wish to pass the data between pages.

"Maspr" <Ma***@discussions.microsoft.comwrote in message
news:66**********************************@microsof t.com...
>I am trying to build a mixed site of ASP and ASP.NET. I am having trouble
keeping the ASP session from timing out when using just the ASP.NET pages.
The ASP.NET pages has a Master Page with an iFrame that loads an ASP page,
however this is not keeping ASP from timing out. Does anyone know how to
work
around this?

Aug 8 '06 #2
I understand that. I have a bridge to pass session data between the pages.
However, I am unable to keep the ASP pages from timing out when I'm browsing
the ASP.NET pages.

"Scott M." wrote:
ASP and ASP.NET do not share the *same* session object. You must persist
your data in some other way if you wish to pass the data between pages.

"Maspr" <Ma***@discussions.microsoft.comwrote in message
news:66**********************************@microsof t.com...
I am trying to build a mixed site of ASP and ASP.NET. I am having trouble
keeping the ASP session from timing out when using just the ASP.NET pages.
The ASP.NET pages has a Master Page with an iFrame that loads an ASP page,
however this is not keeping ASP from timing out. Does anyone know how to
work
around this?


Aug 8 '06 #3
"Maspr" <Ma***@discussions.microsoft.comwrote in message
news:C3**********************************@microsof t.com...
However, I am unable to keep the ASP pages from timing out when I'm
browsing
the ASP.NET pages.
Well of course you are. As Scott told you, ASP and ASP.NET don't share the
same Session object. Having the ability for the two different sessions to
share data is irrelevent...
Aug 8 '06 #4
Right, because when you are browsing an ASP.NET page, the session timeout
clock for ASP pages begins to tick.

The solution is to use a different mechanism (other than sessions) for
multi-ASP/ASP.NET applications.
"Maspr" <Ma***@discussions.microsoft.comwrote in message
news:C3**********************************@microsof t.com...
>I understand that. I have a bridge to pass session data between the pages.
However, I am unable to keep the ASP pages from timing out when I'm
browsing
the ASP.NET pages.

"Scott M." wrote:
>ASP and ASP.NET do not share the *same* session object. You must persist
your data in some other way if you wish to pass the data between pages.

"Maspr" <Ma***@discussions.microsoft.comwrote in message
news:66**********************************@microso ft.com...
>I am trying to build a mixed site of ASP and ASP.NET. I am having
trouble
keeping the ASP session from timing out when using just the ASP.NET
pages.
The ASP.NET pages has a Master Page with an iFrame that loads an ASP
page,
however this is not keeping ASP from timing out. Does anyone know how
to
work
around this?



Aug 8 '06 #5
re:
I am unable to keep the ASP pages from timing out when I'm browsing the ASP.NET pages.
ASP and ASP.NET have separate timeout thresholds.

You cannot expect ASP sessions to not time out if you're calling ASP.NET pages,
even if you insert an ASP page in an iFrame.

That call is, still, processed by the aspnet isapi application.

Have you attempted to use Response.Redirect to call ASP pages,
( and later redirecting to your ASP.NET pages) instead of inserting
ASP pages in an iFrame ?

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Maspr" <Ma***@discussions.microsoft.comwrote in message
news:C3**********************************@microsof t.com...
>I understand that. I have a bridge to pass session data between the pages.
However, I am unable to keep the ASP pages from timing out when I'm browsing
the ASP.NET pages.

"Scott M." wrote:
>ASP and ASP.NET do not share the *same* session object. You must persist
your data in some other way if you wish to pass the data between pages.

"Maspr" <Ma***@discussions.microsoft.comwrote in message
news:66**********************************@microso ft.com...
>I am trying to build a mixed site of ASP and ASP.NET. I am having trouble
keeping the ASP session from timing out when using just the ASP.NET pages.
The ASP.NET pages has a Master Page with an iFrame that loads an ASP page,
however this is not keeping ASP from timing out. Does anyone know how to
work
around this?



Aug 8 '06 #6
When you Time out in your IFrame you should be redirecting to the login
page. Then in the logon page add this script.

<script language="javascript" type="text/javascript">
if (self != top)
{
top.location.replace(window.location.href);

}
</script>

I was converting and asp site to asp.net 2.0 and ran into this problem
of having and IFrame in the master page to hold all of the classic asp
pages. When the asp pages timed out the IFrame would redirect to the
logon page and the master page would not respond, for obvious reasons,
so I added the above code to the logon page.

Aug 31 '06 #7

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

Similar topics

12
by: Geigho | last post by:
Setting session timeout in web.config file does not seem to have any effect. Any explanation or suggestion will be appreciated.
2
by: Ashley | last post by:
Hi ...need some advice: I like to create a redirect to my custom error page if the user sessions timeout happens. For this purpose I can use for example <error statusCode="404" redirect="404.aspx"...
3
by: vbwig(UNSUBSCRIBE) | last post by:
I've got an asp.net site which runs from IIS 5. On 4 customers sites, this site runs ok. On our main customers site, one of the pages takes a little while to process a request & times out - giving...
4
by: UJ | last post by:
I have a page where the user can upload a video file. As you can guess, this may take a while. Is there a way I can change the session timeout for just this one page? I would also want to change...
2
by: Xavi Espi | last post by:
Hi, Windows 2000 Server SP3 IIS 5.0 NET FRAMEWORK 1.1 SP1 SessionState="InProc" Antivirus deactivate
2
by: momo898 | last post by:
I have a big problem. Most case it's working well but sometime the below happens. User A on computer B gets session object created by user X on computer Y instead of getting session object saved...
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
4
by: Nebulus | last post by:
We've got a website that's designed in classic ASP. While it's a good product, the original design was badly done, and I've inherited a monster. At some point last week, users began calling in...
7
by: Ross Culver | last post by:
I need to ensure that session variables are removed whenever someone leaves my web site. My understanding is that this should be happening automatically with the session mode set to InProc. But...
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: 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
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...

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.