Re: Session Variables
From: Alessandro Zifiglio (alessandrozifiglio_at_No-Spam--hotmail.com)
Date: 03/11/04
- Next message: Stuart Hemming (via DFN-CIS NetNews Service): "Re: Session Variables"
- Previous message: Angel Molines: "Session Variables"
- In reply to: Angel Molines: "Session Variables"
- Next in thread: Angel Molines: "Re: Session Variables"
- Reply: Angel Molines: "Re: Session Variables"
- Messages sorted by: [ date ] [ thread ]
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 !
>
>
>
- Next message: Stuart Hemming (via DFN-CIS NetNews Service): "Re: Session Variables"
- Previous message: Angel Molines: "Session Variables"
- In reply to: Angel Molines: "Session Variables"
- Next in thread: Angel Molines: "Re: Session Variables"
- Reply: Angel Molines: "Re: Session Variables"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|