Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

session objects in ASP vs ASP.NET

0 views
Skip to first unread message

tf

unread,
Mar 9, 2001, 6:44:34 PM3/9/01
to
Trying to understand the nuances between ASP and ASP.NET.

I have set a session variable from an ASPX page. If I use a clientside
javascript function to popup a new window (an ASP file), then the new window
does not have access to the session variable. Is this behaviour correct?

If I rewrite the popup so that it is an ASPX then it gets the session
variable. What is going on? I am mixing ASP and ASPX in the same
application. Am I actually running two different sessions and therefore
unable to pass session variables?

Thanks for any insight.

Troy


prau

unread,
Mar 9, 2001, 9:28:03 PM3/9/01
to
> I have set a session variable from an ASPX page. If I use a clientside
> javascript function to popup a new window (an ASP file), then the new
window
> does not have access to the session variable. Is this behaviour correct?

Yes it is correct. ASP and ASPX will not share session variables, no matter
how you set up the application.


Brad Kingsley

unread,
Mar 11, 2001, 5:43:03 PM3/11/01
to
How about writing the value to a cookie in either ASP or ASP.Net and then
reading it back on the other? I can't think of many other (graceful) ways to
pass information between the two.

~Brad

---------------------------------------
The Best Support On The 'Net
Windows 2000 Advanced Hosting
http://www.orcsweb.com/
---------------------------------------

ASP.Net FAQ - http://www.aspnetfaq.com/
ASPAlliance - http://www.aspalliance.com/


"prau" <n...@email.please.com> wrote in message
news:#$CVjmQqAHA.320@tkmsftngp05...

0 new messages