473,486 Members | 1,984 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Sharing Session State between ASP and ASP.NET

Hi, Our application have asp and .aspx pages, we need to redirect user from
asp page to .aspx page and vice-versa and want to share session state b/w asp
and asp.net. This could be achieved by storing the session state in database.
I have few quires on this.
1) What happen if asp session and asp.net session time out limit is
different ? for example asp session limit is 20 min. and asp.net session
limit is 30 min. if user is navigated from asp page to .aspx page and he is
on .aspx page more than 20 min and come back asp page. then what will happen
to asp session. I want understand what the mechinism behind this.
2) We have header and footer code written in .inc files and included in asp
pages. when user navigates from asp page to .aspx page. Can we use same
header and footer .inc files in .aspx page ? (Header.inc contains some server
side written in classic asp style) or else we hv to create new header and
footer as user controls in .net for aspx pages.

Thanks in Advacne, Any help is apprecitated
Sachin Saki

May 28 '07 #1
3 4900
On May 28, 12:31 pm, Sachin Saki
<SachinS...@discussions.microsoft.comwrote:
Hi, Our application have asp and .aspx pages, we need to redirect user from
asp page to .aspx page and vice-versa and want to share session state b/w asp
and asp.net. This could be achieved by storing the session state in database.
I have few quires on this.
1) What happen if asp session and asp.net session time out limit is
different ? for example asp session limit is 20 min. and asp.net session
limit is 30 min. if user is navigated from asp page to .aspx page and he is
on .aspx page more than 20 min and come back asp page. then what will happen
to asp session. I want understand what the mechinism behind this.
It would depend on how SQL Server had been configured to delete
sessions.

2) We have header and footer code written in .inc files and included in asp
pages. when user navigates from asp page to .aspx page. Can we use same
header and footer .inc files in .aspx page ? (Header.inc contains some server
side written in classic asp style) or else we hv to create new header and
footer as user controls in .net for aspx pages.
It wouldn't work because of server side code. But the classic server-
side #Includes directive are still working in ASP.NET

How to Share Session State Between Classic ASP and ASP.NET
http://msdn2.microsoft.com/en-us/library/aa479313.aspx

May 28 '07 #2
Thanks Alexey, The link that you gave I gone through but have not found the
satisfactory answers of the quires I have. Can you explain in detail. i guess
you understand my concern.

Thanks n Regards,
Sachin Saki

"Alexey Smirnov" wrote:
On May 28, 12:31 pm, Sachin Saki
<SachinS...@discussions.microsoft.comwrote:
Hi, Our application have asp and .aspx pages, we need to redirect user from
asp page to .aspx page and vice-versa and want to share session state b/w asp
and asp.net. This could be achieved by storing the session state in database.
I have few quires on this.
1) What happen if asp session and asp.net session time out limit is
different ? for example asp session limit is 20 min. and asp.net session
limit is 30 min. if user is navigated from asp page to .aspx page and he is
on .aspx page more than 20 min and come back asp page. then what will happen
to asp session. I want understand what the mechinism behind this.

It would depend on how SQL Server had been configured to delete
sessions.

2) We have header and footer code written in .inc files and included in asp
pages. when user navigates from asp page to .aspx page. Can we use same
header and footer .inc files in .aspx page ? (Header.inc contains some server
side written in classic asp style) or else we hv to create new header and
footer as user controls in .net for aspx pages.

It wouldn't work because of server side code. But the classic server-
side #Includes directive are still working in ASP.NET

How to Share Session State Between Classic ASP and ASP.NET
http://msdn2.microsoft.com/en-us/library/aa479313.aspx

May 28 '07 #3
On May 28, 1:46 pm, Sachin Saki <SachinS...@discussions.microsoft.com>
wrote:
Thanks Alexey, The link that you gave I gone through but have not found the
satisfactory answers of the quires I have. Can you explain in detail. i guess
you understand my concern.
Apologies! I've misunderstood your first concern, sorry. But now I
have an idea. What about including an .asp include into ASP.NET (using
#Includes and an empty page <% %>) I think it should keep the ASP-
session during the time when user is working on the ASP.NET part. Can
you try it?

May 28 '07 #4

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

Similar topics

3
2886
by: Hardik Shah | last post by:
Hi, I am calling an ASP.Net page from an ASP classic application but need the .Net page to have access to ASP classic's session variables. I am using HTTPWebRequest to call ASP classic page...
3
1980
by: grooby | last post by:
I would like to develop an asp.net Web application using muliple web projects under one solution file and share the session information between web applications( or projects). Is this possible?
4
2583
by: Daniel | last post by:
Hi I am having a problem sharing session between SSL and non-SSL asp.net pages I have F5 BigIP with sticky sessions working fine, but the problem is tha sticky session applies at the port level...
10
2199
by: Suresh | last post by:
how to share Session Sharing Across the domain
0
1319
by: Daniel Malcolm | last post by:
Hi I have a site where I would like some pages to be accessed via SSL (login and payment etc) and others via regular http. However I'm not sure whether Session state can be maintained between...
0
1624
by: Nabani Silva | last post by:
Hi, hope someone could help I need to share session state (and contents) through differente web applications. I'm trying to get it done by using StateServer session state, below I paste code...
4
2324
by: qube3 | last post by:
We have applications written by JSP/Servlet and ASP.NET. All our future development would be based on ASP.NET. We wants to develop a single user interface so that users would not be aware that...
7
4387
by: Nils Hedström | last post by:
I have a web farm that uses a state server for session management. A user logs on to a website (www1.mysite.com). When the same user visits www2.mysite.com I want the user to be logged in. Right...
5
2691
by: oliv | last post by:
Hi, New to .NET, I was wondering what was the proper way to share a variable between all the instances of a web page. I try with a static var, but it does not seem to always work. Why is that ? ...
0
7099
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
6964
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
7123
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
7175
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
7319
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
5430
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,...
1
4864
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3069
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.