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

ASP session vs. ASP.NET session

Ed
Is it possible to define a SESSION("userid") in ASP and then retrieve its
value from ASP.NET? (Suppose I have an application in both ASP and
ASP.NET.)

Thanks.
Nov 18 '05 #1
7 1966
No. Your best bet might be to use something like cookies.

Unless there is no other way for your problem, I would suggest not mixing
code environments. The reason being that ASP and ASP.NET are handled by
entirely different execution engines. You run into a lot of problems as one
group of pages does not know that the other exists. Because they use
different engines, the do not share memory space. This can lead to logical
inconsistencies. Suppose that a user accesses your home page, which might
be ASP.NET. A session is started. Now, they navigate to another page that
is ASP only. A second session is started, even though logically the user is
in the same web application.

I think this is how things work.

"Ed" <ed*********@hotmail.com> wrote in message
news:ep**************@TK2MSFTNGP10.phx.gbl...
Is it possible to define a SESSION("userid") in ASP and then retrieve its
value from ASP.NET? (Suppose I have an application in both ASP and
ASP.NET.)

Thanks.

Nov 18 '05 #2
From what I understand the two can exist together but not
share data, but if I were in your situation I would
simply use Response.Redirect with a querystring parameter
to pass data. Don't forget to encode it.
-----Original Message-----
Is it possible to define a SESSION("userid") in ASP and then retrieve itsvalue from ASP.NET? (Suppose I have an application in both ASP andASP.NET.)

Thanks.
.

Nov 18 '05 #3
TJS
http://msdn.microsoft.com/library/de...rttoaspnet.asp

--
================================
http://www.ASPkey.net/
A Resource Site for Web Developers
*Free OnLine web Tools
*Free development services
================================

"Ed" <ed*********@hotmail.com> wrote in message
news:ep**************@TK2MSFTNGP10.phx.gbl...
Is it possible to define a SESSION("userid") in ASP and then retrieve its
value from ASP.NET? (Suppose I have an application in both ASP and
ASP.NET.)

Thanks.

Nov 18 '05 #4
This would be painfully slow and overengineered and like
the redirect would not support serialization of objects
like ADO Recordsets (though you could convert them to XML
strings). The article also fails to discuss locking
scenarios in the database. I would be very judicious
about what you need to share between the two and either
use the redirect approach or a persistant data store like
MSDE or SQL Server.
-----Original Message-----
http://msdn.microsoft.com/library/default.asp? url=/library/en-us/dnaspp/html/converttoaspnet.asp
--
================================
http://www.ASPkey.net/
A Resource Site for Web Developers
*Free OnLine web Tools
*Free development services
================================

"Ed" <ed*********@hotmail.com> wrote in message
news:ep**************@TK2MSFTNGP10.phx.gbl...
Is it possible to define a SESSION("userid") in ASP and then retrieve its value from ASP.NET? (Suppose I have an application in both ASP and ASP.NET.)

Thanks.

.

Nov 18 '05 #5
But wouldn't that allow people to hijack sessions? ;]

--

Ray at home
Microsoft ASP MVP
"Keith" <ke***@keithadler.com> wrote in message
news:7c****************************@phx.gbl...
From what I understand the two can exist together but not
share data, but if I were in your situation I would
simply use Response.Redirect with a querystring parameter
to pass data. Don't forget to encode it.
-----Original Message-----
Is it possible to define a SESSION("userid") in ASP and

then retrieve its
value from ASP.NET? (Suppose I have an application in

both ASP and
ASP.NET.)

Thanks.
.

Nov 18 '05 #6
TJS
if you have any concerns or questions about the solution, please take them
up with the author of the article, bi****@microsoft.com.
"Keith" <ke***@keithadler.com> wrote in message
news:82****************************@phx.gbl...
This would be painfully slow and overengineered and like
the redirect would not support serialization of objects
like ADO Recordsets (though you could convert them to XML
strings). The article also fails to discuss locking
scenarios in the database. I would be very judicious
about what you need to share between the two and either
use the redirect approach or a persistant data store like
MSDE or SQL Server.
-----Original Message-----
http://msdn.microsoft.com/library/default.asp?

url=/library/en-us/dnaspp/html/converttoaspnet.asp

--
================================
http://www.ASPkey.net/
A Resource Site for Web Developers
*Free OnLine web Tools
*Free development services
================================

"Ed" <ed*********@hotmail.com> wrote in message
news:ep**************@TK2MSFTNGP10.phx.gbl...
Is it possible to define a SESSION("userid") in ASP and then retrieve its value from ASP.NET? (Suppose I have an application in both ASP and ASP.NET.)

Thanks.

.

Nov 18 '05 #7
Check out this article also to share sessions between asp and asp.net,
http://www.eggheadcafe.com/articles/20021207.asp

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"TJS" <no****@here.com> wrote in message
news:#V**************@TK2MSFTNGP10.phx.gbl...
if you have any concerns or questions about the solution, please take them
up with the author of the article, bi****@microsoft.com.
"Keith" <ke***@keithadler.com> wrote in message
news:82****************************@phx.gbl...
This would be painfully slow and overengineered and like
the redirect would not support serialization of objects
like ADO Recordsets (though you could convert them to XML
strings). The article also fails to discuss locking
scenarios in the database. I would be very judicious
about what you need to share between the two and either
use the redirect approach or a persistant data store like
MSDE or SQL Server.
-----Original Message-----
http://msdn.microsoft.com/library/default.asp?

url=/library/en-us/dnaspp/html/converttoaspnet.asp

--
================================
http://www.ASPkey.net/
A Resource Site for Web Developers
*Free OnLine web Tools
*Free development services
================================

"Ed" <ed*********@hotmail.com> wrote in message
news:ep**************@TK2MSFTNGP10.phx.gbl...
> Is it possible to define a SESSION("userid") in ASP

and then retrieve its
> value from ASP.NET? (Suppose I have an application in

both ASP and
> ASP.NET.)
>
> Thanks.
>
>
.


Nov 18 '05 #8

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

Similar topics

2
by: Damien | last post by:
Hi to all, I'm currently re-designing our intranet : nice and lean CSS2, cleaned-up PHP 4.3.7, better-normalized MySQL ;o). So I've started using the $_SESSION variable instead of register_globals...
1
by: mudge | last post by:
I'm running PHP Version 4.3.10. I'm trying to make it so that when a person logs in using a user name and password that their session is valid and continues for a few months so they don't have to...
6
by: Al Jones | last post by:
This is a repost form the vbscript newgroup - if this isn't the appropriate group would you point me toward one that is. Basically, I seem to be losing session data part way though preparing an...
5
by: Abhilash.k.m | last post by:
This is regarding the session management using Out of proc session management(SQL SERVER). Among the samples below which one is better to set the session? 1. There are 20 session...
0
by: joseph conrad | last post by:
Hi, I tried to implement my own session handler in order to keep control on the process the drawback I foun it is not creating and storing in my cookie the PHPSESSID variable anymore. reading te...
14
by: aroraamit81 | last post by:
Hi, I am facing a trouble. I have some Session variables in my code and somehow my session variables are getting mixed up with other users. For example User A has access to 10 companies and...
7
by: aroraamit81 | last post by:
Well Guys, Here is a very strange trouble. When more than one users request tto same page at the same time then our session gets conflicted. Moreover I printed my SessionID, strangely but true I...
0
by: TRB_NV | last post by:
I'd been using an Access database based shopping cart, but wanted to change it so that it would use session variables. I have a form that's submitted to a page called addtocart.asp that contains...
1
by: Santosh | last post by:
Dear All i am writting a code sending mail with attachement. i am writting code for sending mail in one page and code for attaching a file in the next page. aftet attaching a file i am taking...
5
by: lyealain | last post by:
<% If Session("username") = "" Then Response.Redirect("/CLS/Login.asp") End If Dim conn Dim connectstr Dim db_name, db_username, db_userpassword Dim db_server Dim res
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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...

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.