Re: converting ASP.Net session type to an ASP one

From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 10/28/05


Date: Fri, 28 Oct 2005 16:39:48 -0400


    When you say you store it in the database, what do you mean? I mean,
are you storing values in the db? If this is the case, then you can fetch
these values from the db and use them in a representation native to ASP.

    However, if you are serializing data types in the DB, you won't be able
to restore them (at least, easily) in ASP. You would have to create a COM
object in .NET which will perform the deserialization for you, and then make
sure ALL types in the serialized object graph are available for COM interop.

    You still run into the problem of passing the session id from ASP.NET to
ASP. You would have to use the query string for that, or issue a POST
(which is the less feasable of the two). You would have to do this on top
of any authentication you have as well (credentials should not be assumed
because of the session id).

    Web services would be a better option here, IMO, since it would allow
you to encapsulate the two systems better.

    Hope this helps.

-- 
          - Nicholas Paldino [.NET/C# MVP]
          - mvp@spam.guard.caspershouse.com
"genc_ymeri" <genc_ymeri@hotmail.com> wrote in message 
news:u9adnZBqlKJA8vzeRVn-hg@adelphia.com...
> Hi,
> Well, I'm looking around for another opinion. We have two webservers, the 
> legacy one writen in ASP and the new one in ASP.Net.
>
> Once a user logs in the ASP.Net web app, the session of the Login page 
> gets stored in a DB (in a binary format). Meantime, if the user chooses to 
> go and run the web legacy system, he doesn't want to log in again, so an 
> "option" we are considering  is to go and get the data from session of 
> Login Page (of ASP.net web app) which stored in DB at the very first step.
>
> The issue we are facing is how can we convert the ASP.Net session into a 
> old ASP one ? Is that possible or should we consider another option ?
>
> Any tips very much appreciated !!!!
>
>
> PS:
> 1. Passing data through QueryString is not an option due to security 
> reasons.
> 2. Another way is to do this through webservices but we are going to parse 
> all the session data rather than converting it as is from ASP.Net to ASP 
> and vise versa.
>
>
> 


Relevant Pages

  • Re: How do u set classic ASP session variables from an ASP.NET application???
    ... "How to Share Session State Between Classic ASP and ASP.NET" ... > public class ASPSession ... > public String this ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: session sharing from ASP to ASP.NET
    ... ASP and ASP.NET do not share session data. ... their code within the context of the Classic ASP "Engine". ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP sessionstate
    ... ASP doesn't know or care what browser it ... If html is already sent ... What is a session number? ... Session initialisation is done by the server system, ...
    (microsoft.public.inetserver.asp.general)
  • session_start problems among other things?
    ... The third party has a shopping cart which must be saved in the ... the hosted server that we do not see on our internal development ... save and restore the cart to the session so as to concentrate the ... ASP.NET APIs could be called from ASP pages but the development was ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IIS 6 loses ASP sessions
    ... ASP bug with keeping track of session IDs -- hard to imagine since it'd ... include crashes happening in the worker process (different process identity ... unless we run IIS 6.0 in 5.0 Isolation Mode. ...
    (microsoft.public.inetserver.iis)