473,480 Members | 3,135 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Session scope ASP vs. ASP.net

I have a session variable defined in .NET as "session
("div")"....my questions is...is it possible to take the
value of that session and use it in .ASP page.

Otherwise, I have declared a variable in a .aspx page can
I evaluate that same value when moving to a .ASP page.

Any suggestions or ideas....

Jay Esguerra
Web Progammer
Roth Staffing
Jul 21 '05 #1
1 2515
Classic ASP and ASP.NET were designed for "side-by-side" execution. This
means they can both be installed on the same server without conflicts.

While both architectures do expose response, request, server and session,
they are NOT the same response, request, server and session objects. So
data stored in one session object can not (directly) be pulled out from
another.

Now, this doesn't mean there aren't work-arounds. You would simply have to
have your Classic ASP page pull the values out of its session and store them
in a location that the .aspx page can retrieve from. This could be a text
file, a database, or a cookie.
"Jay Esguerra" <je*******@rothstaffing.com> wrote in message
news:44****************************@phx.gbl...
I have a session variable defined in .NET as "session
("div")"....my questions is...is it possible to take the
value of that session and use it in .ASP page.

Otherwise, I have declared a variable in a .aspx page can
I evaluate that same value when moving to a .ASP page.

Any suggestions or ideas....

Jay Esguerra
Web Progammer
Roth Staffing

Jul 21 '05 #2

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

Similar topics

8
1467
by: Lichunlin | last post by:
Dear all, Sorry for cross posting. I have one page, create an object and save it in session scope, and then redirect to another page.In the new page, the object existed in session object, but...
3
1476
by: Simon Niederberger | last post by:
How can I give a user-defined object session scope? From http://www.microsoft.com/windows2000/en/server/iis/default.asp?url=/windows2000/en/server/iis/htm/asp/iiwaobu.htm I gather that it can...
7
2016
by: Nicole | last post by:
Hi I'm trying to use a function to set a session variable. I have three files: The first file has: <?php session_start(); // This connects to the existing session ?> <html> <head>
4
1654
by: Dean | last post by:
I finally got class session variables to work by putting the following in global.asax in the session_start: dim myDBComp as DBComp = new DBComp........ session("myDBComp") = myDBComp In each...
4
1154
by: Elliot M. Rodriguez | last post by:
I am seeking some advice on an issue I am facing concerning session state. I have an app that relies on 2 session values being set at the start. These session values set the stage for data that...
8
3159
by: Dave Wurtz | last post by:
All, I'm new to ASP development and I have a basic design question: Is it ok to store business objects to session variables or is there a better way to keep object information? For example,...
15
1856
by: SFX | last post by:
If I have a session ID (string) can I somehow obtain the session object associated to that ID (it exist of course) ? I know this sounds wicked but I have a situation in which I have to make a...
0
943
by: HL | last post by:
Hi, I have a small application that authenticates the user and stores the credentials and other identity info in a session-scope object. After browsing a few pages, that session-scope object...
18
3395
by: BillE | last post by:
When a user opens a new IE browser window using File-New-Window the integrity of an application which relies on session state is COMPLETELY undermined. Anyone who overlooks the fact that...
6
2776
by: Bhagya | last post by:
Hello, On the LogOut Page i have done Session.Abandon(); And on every Page, In the Page_Load Event i check if the session exists and only then display data. Now the problem is after i logout from...
0
6920
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
7110
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
7030
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...
1
4799
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
3015
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...
0
3011
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
574
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
210
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.