Showing posts with label written. Show all posts
Showing posts with label written. Show all posts

Monday, March 26, 2012

Session variable is not transferred to an asp page?

I have a asp.net project with all major pages written in aspx, but I want to keep an existing asp page in the same directory as the aspx files. But when the asp page gets loaded, the session variable is not recognized. Is this the case and why?To be specific, when I load the asp.net app using the address of http://localhost/myproj/ it works fine, and the asp page could read the session variable assigned by an aspx page. But if I use my computer name, say http://keystrokes_win2k/myproj/ then it doesn't work.

Any ideas?
No, the ASP and ASP.NET sessions are two separate objects that do not share their data. There are some third party session objects that you can use to communicate between the two environments, though.
What is the third party session object, please provide some lead ?

Thursday, March 22, 2012

Session Variables

Hi all,
We seem to be having a problem passing session variables from a page in ASP to a page written in .Net (aspx).
What is the generally accepted solution to this issue?
Thanks in advanceSession states are not shared between ASP and ASP.NET pages.

Simplest solution is to convert all asp pages which employ session variables into ASP.NET pages, alternatively you could encrypt your session variables into cookies.

All the best.

Tuesday, March 13, 2012

Session Variables across projects

I have a solution the is composed of 2 projects. The first is the main web
application itself and is written in VB.NET. The second is a web service
written in C#.
The main application launches a window that interacts with the Web Service.
However the session variables in the Web Service are NULL and generate an
exception. I have found no information about utilizing session variables
across projects in the same solution. Is it possible and are there any
caveats?
KentYou can't even use application variables across projects, let alone session
variables. Try a database. Or writing to a shared file.
Dale
"Kent Ogletree" <kent@.nospam.actionic.com> wrote in message
news:e#wW1h3bEHA.3476@.tk2msftngp13.phx.gbl...
> I have a solution the is composed of 2 projects. The first is the main web
> application itself and is written in VB.NET. The second is a web service
> written in C#.
> The main application launches a window that interacts with the Web
Service.
> However the session variables in the Web Service are NULL and generate an
> exception. I have found no information about utilizing session variables
> across projects in the same solution. Is it possible and are there any
> caveats?
> Kent
>
>

Session Variables across projects

I have a solution the is composed of 2 projects. The first is the main web
application itself and is written in VB.NET. The second is a web service
written in C#.

The main application launches a window that interacts with the Web Service.
However the session variables in the Web Service are NULL and generate an
exception. I have found no information about utilizing session variables
across projects in the same solution. Is it possible and are there any
caveats?

KentYou can't even use application variables across projects, let alone session
variables. Try a database. Or writing to a shared file.

Dale

"Kent Ogletree" <kent@.nospam.actionic.com> wrote in message
news:e#wW1h3bEHA.3476@.tk2msftngp13.phx.gbl...
> I have a solution the is composed of 2 projects. The first is the main web
> application itself and is written in VB.NET. The second is a web service
> written in C#.
> The main application launches a window that interacts with the Web
Service.
> However the session variables in the Web Service are NULL and generate an
> exception. I have found no information about utilizing session variables
> across projects in the same solution. Is it possible and are there any
> caveats?
> Kent