Re: Session Variables

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Alessandro Zifiglio (alessandrozifiglio_at_No-Spam--hotmail.com)
Date: 03/11/04


Date: Thu, 11 Mar 2004 11:30:05 +0100

You have to transfer control from one page to another by using the
server.transfer() method. Here a link to an article on the microsoft
knowledge base.Even though they are specifically dealing with classic asp,
the same applies for asp.net

http://support.microsoft.com/default.aspx?scid=kb;EN-US;219294

Following is a summary of what you have on the docs.

When you call Server.Transfer, the state information for all the built-in
objects will be included in the transfer. This means that any variables or
objects that have been assigned a value in session or application scope will
be maintained. In addition, all of the current contents for the request
collections will be available to the .asp file receiving the transfer.

If the path you specify in the input parameter is for an .asp file in
another application, the .asp file will execute as if it were in the
application that contains the Server.Transfer command. In other words, all
variables and objects that have been given application scope either by other
.asp files in the application or by the application's Global.asa file will
be available to the called .asp file. However, the path parameter must not
contain an query string or ASP returns an error.

Server.Transfer acts as an efficient replacement for Response.Redirect.
Response.Redirect tells the browser to request a different page. Since a
redirect forces a new page request, the browser has to make two round trips
to the Web server, and the Web server has to handle an extra request. IIS
5.0 introduced a new function, Server.Transfer, which transfers execution to
a different ASP page on the server. This avoids the extra round trip,
resulting in better overall system performance, as well as a better user
experience.

"Angel Molines" <amolines@cambrescat.es> wrote in message
news:uJ3lPF1BEHA.3184@TK2MSFTNGP09.phx.gbl...
>
> De: "Angel Molines" <amolines@cambrescat.es>
> Asunto: Session Variables
> Fecha: jueves, 11 de marzo de 2004 9:17
>
> how can to do for share session variables or cookies between two servers
>
> Thanks !
>
>
>



Relevant Pages

  • Re: Accessing network file form ASP page
    ... I've an asp file inside a virtual directory with necessary only Windows ... The authentication inside asp file is made only with domain user. ... Does my web server always access to text file on network share only by using ... > granted access than suddenly give IUSR carte blanche over the whole ...
    (microsoft.public.inetserver.misc)
  • Re: Accessing network file form ASP page
    ... I've an asp file inside a virtual directory with necessary only Windows ... The authentication inside asp file is made only with domain user. ... Does my web server always access to text file on network share only by using ... > granted access than suddenly give IUSR carte blanche over the whole ...
    (microsoft.public.inetserver.asp.general)
  • Re: Accessing network file form ASP page
    ... I've an asp file inside a virtual directory with necessary only Windows ... The authentication inside asp file is made only with domain user. ... Does my web server always access to text file on network share only by using ... > granted access than suddenly give IUSR carte blanche over the whole ...
    (microsoft.public.inetserver.iis.security)
  • Server Application Unavailable for aspx file but work for asp file, help plz!
    ... An error message detailing the cause of this specific request failure can be found in the application event log of the web server. ... but it was fine for asp file, but that happen to whatever aspx file i type, in the log, it said: ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: get_aspx_ver.aspx ???
    ... If the defaultRedirect attribute is set to an HTML file or to ... an ASP file, the request for the Get_aspx_ver.aspx file does not return the ...
    (microsoft.public.dotnet.framework.aspnet)