473,607 Members | 2,653 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

server transfer to another site

I need to be able to move from one web app on my server to another on the
same server and preserve the session state. I have played with
server.transfer but I get an error saying I can't do this. How can I
accomplish this. I don't think redirects with session state being passed in
the url makes any sense from a security standpoint.
--
Barry
Feb 28 '06 #1
23 6784
How about a secure form post then to a page in the
other web app, carring session info and re-establishing
it?
"barryfz" <ba***@noemail. noemail> wrote in message
news:es******** ******@TK2MSFTN GP14.phx.gbl...
I need to be able to move from one web app on my server to another on the
same server and preserve the session state. I have played with
server.transfer but I get an error saying I can't do this. How can I
accomplish this. I don't think redirects with session state being passed in the url makes any sense from a security standpoint.
--
Barry

Feb 28 '06 #2
Server.Transfer does not affect the Session state as far as I know. Is
session what you meant ?. You can set a session var in one form, transfer to
form 2 and the variable will still be there in session.

--
Terry Burns
http://TrainingOn.net
"Raymond" <un*******@noth ee.net> wrote in message
news:wu0Nf.3143 3$pE4.25921@trn ddc04...
How about a secure form post then to a page in the
other web app, carring session info and re-establishing
it?
"barryfz" <ba***@noemail. noemail> wrote in message
news:es******** ******@TK2MSFTN GP14.phx.gbl...
I need to be able to move from one web app on my server to another on
the
same server and preserve the session state. I have played with
server.transfer but I get an error saying I can't do this. How can I
accomplish this. I don't think redirects with session state being passed

in
the url makes any sense from a security standpoint.
--
Barry


Feb 28 '06 #3
Terrry

I need to transfer to a page in a different site. I am getting an error
saying I can't do that in server.transfer . Maybe I am doing something wrong.

Barry
"Terry Burns" <me@mine.com> wrote in message
news:u6******** ******@TK2MSFTN GP12.phx.gbl...
Server.Transfer does not affect the Session state as far as I know. Is
session what you meant ?. You can set a session var in one form, transfer
to form 2 and the variable will still be there in session.

--
Terry Burns
http://TrainingOn.net
"Raymond" <un*******@noth ee.net> wrote in message
news:wu0Nf.3143 3$pE4.25921@trn ddc04...
How about a secure form post then to a page in the
other web app, carring session info and re-establishing
it?
"barryfz" <ba***@noemail. noemail> wrote in message
news:es******** ******@TK2MSFTN GP14.phx.gbl...
I need to be able to move from one web app on my server to another on
the
same server and preserve the session state. I have played with
server.transfer but I get an error saying I can't do this. How can I
accomplish this. I don't think redirects with session state being passed

in
the url makes any sense from a security standpoint.
--
Barry



Feb 28 '06 #4
What you are trying to do is unnatural. The main reason separate
applications exist is so they can maintain separate application state.

That said, there are ways to do it but they are not simple if you're dealing
with very much data. Its a very manual process to pass data between
applications. You can pass data via querystring or a common backend
database, etc.

--
I hope this helps,
Steve C. Orr
MCSD, MVP
http://SteveOrr.net

"barryfz" wrote:
I need to be able to move from one web app on my server to another on the
same server and preserve the session state. I have played with
server.transfer but I get an error saying I can't do this. How can I
accomplish this. I don't think redirects with session state being passed in
the url makes any sense from a security standpoint.
--
Barry

Feb 28 '06 #5
Probably not if the domain is different. There may be
other ways to do it, but the simplest way is to redirect
via a form post and re-establish session using form post
data.
"Terry Burns" <me@mine.com> wrote in message
news:u6******** ******@TK2MSFTN GP12.phx.gbl...
Server.Transfer does not affect the Session state as far as I know. Is
session what you meant ?. You can set a session var in one form, transfer to form 2 and the variable will still be there in session.

Feb 28 '06 #6
Barry,
As Steve and others may have pointed out, Server.Transfer only is designed
to work within the current IIS application.

What you would need to do if you do not want to pass session information on
the querystring or as hidden formfields is to set up a custom database or
other persistent storage mechanism to store and then retrieve by
"customSessionI d" the information you need once the redirect lands on the new
site.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"barryfz" wrote:
I need to be able to move from one web app on my server to another on the
same server and preserve the session state. I have played with
server.transfer but I get an error saying I can't do this. How can I
accomplish this. I don't think redirects with session state being passed in
the url makes any sense from a security standpoint.
--
Barry

Feb 28 '06 #7
Raymond,

I am not sure what you mean by domain? While these are different apps they
are on the same server, just different sites.

If I pass this a part of post don't I then allow someone to hijack the data
being posted and use it to gain access?

Barry
"Raymond" <un*******@noth ee.net> wrote in message
news:wO0Nf.3143 8$pE4.6074@trnd dc04...
Probably not if the domain is different. There may be
other ways to do it, but the simplest way is to redirect
via a form post and re-establish session using form post
data.
"Terry Burns" <me@mine.com> wrote in message
news:u6******** ******@TK2MSFTN GP12.phx.gbl...
Server.Transfer does not affect the Session state as far as I know. Is
session what you meant ?. You can set a session var in one form, transfer

to
form 2 and the variable will still be there in session.


Feb 28 '06 #8
Steve,

I really just need to pass the authentication.

Barry
"Steve C. Orr" <St***@Orr.ne t> wrote in message
news:1E******** *************** ***********@mic rosoft.com...
What you are trying to do is unnatural. The main reason separate
applications exist is so they can maintain separate application state.

That said, there are ways to do it but they are not simple if you're
dealing
with very much data. Its a very manual process to pass data between
applications. You can pass data via querystring or a common backend
database, etc.

--
I hope this helps,
Steve C. Orr
MCSD, MVP
http://SteveOrr.net

"barryfz" wrote:
I need to be able to move from one web app on my server to another on
the
same server and preserve the session state. I have played with
server.transfer but I get an error saying I can't do this. How can I
accomplish this. I don't think redirects with session state being passed
in
the url makes any sense from a security standpoint.
--
Barry

Feb 28 '06 #9
Sorry, I misread you. This is correct, you cannot use server transfer to a
different site. Applications are isolated from each other and so a session
in one does not relate to a session in another. One way is to preserve the
session valriables in an SQL database but you need to serialie them for
storage and de-serialize them on retreival.

--
Terry Burns
http://TrainingOn.net
"barryfz" <ba***@noemail. noemail> wrote in message
news:OC******** ******@TK2MSFTN GP10.phx.gbl...
Terrry

I need to transfer to a page in a different site. I am getting an error
saying I can't do that in server.transfer . Maybe I am doing something
wrong.

Barry
"Terry Burns" <me@mine.com> wrote in message
news:u6******** ******@TK2MSFTN GP12.phx.gbl...
Server.Transfer does not affect the Session state as far as I know. Is
session what you meant ?. You can set a session var in one form, transfer
to form 2 and the variable will still be there in session.

--
Terry Burns
http://TrainingOn.net
"Raymond" <un*******@noth ee.net> wrote in message
news:wu0Nf.3143 3$pE4.25921@trn ddc04...
How about a secure form post then to a page in the
other web app, carring session info and re-establishing
it?
"barryfz" <ba***@noemail. noemail> wrote in message
news:es******** ******@TK2MSFTN GP14.phx.gbl...
I need to be able to move from one web app on my server to another on
the
same server and preserve the session state. I have played with
server.transfer but I get an error saying I can't do this. How can I
accomplish this. I don't think redirects with session state being
passed
in
the url makes any sense from a security standpoint.
--
Barry



Feb 28 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4961
by: Hernán Castelo | last post by:
hi i'm setting up my web new server i see that cookies do not persist after a Server.Transfer or Response.Redirect although i do expire them the next year thanks
6
2234
by: StephenMcC | last post by:
Hi All, Got a quick query in relation to the Server.Transfer method available in IIS 5+/ASP. I've got an issue where I want to take a portion of an online app and extract this out into a web site on its own, so I will end up having two web sites. This planned to aid problems we've been having with performance, as if the portion (which is an app in its own right) has problems we then have to restart the whole site and so bring everything...
5
7399
by: Tom | last post by:
Hi I am trying to transfer to a different .ASPX page using Server.Transfer. However, I get the following error: "Error executing child request for .aspx." Anyone know why? Thanks for help.
3
9068
by: Justin | last post by:
Hi, Im confused here over the usage of Response.Redirect and Server.Transfer. I used frameset for my work, what are the proper usages of the two methods that seems working similar.. The problem i faced while using Response.Redirect is that the page that is directed to, does not looks as desired..the textboxes are not visible anymore and so as
2
3203
by: Mr Wizard | last post by:
I am going through the front controller http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpatterns/html/ImpFrontControllerInASP.asp and all works well except when the server.transfer occurs. I get invalid IsPostBack results which I believe can fixed using the patch in KB:821156. How do I get this patch? Another question in the same pattern is when using LoadConrol to load a .ascx file I get "maps to another application,...
2
3369
by: Pete | last post by:
Hi all... I sincerly hope one of the MS guys can clear this up for me... First some background... Ok, I have a web site which is fully translatable into several languages. All the strings for the web site are held in a database and all the labels, buttons etc are populated at run time in the Page_Load handler. The retreval of the strings from the database is all
2
3745
by: David Berman | last post by:
It seems that my site is losing session information when using Server.Transfer. I have a page called PictureGallery.aspx. It takes an argument which is an index id, so it would look like PictureGallery.aspx?id=30 to display gallery 30. In this way I have a database driven picture gallery. To improve indexing, I put code in Global.asax to allow me to get to the same page with a url like this: Pictures_30.aspx. There is no...
18
2286
by: UJ | last post by:
Folks, We provide custom content for our customers. Currently we put the files on our server and people have a program we provide that will download the files. These files are usually SWF, HTML or JPG files. The problem as I see it - if you know the name of the file, you could download it off the server (currently we are using an HTTP/Get but I'm going to be using WebClient in the new version.) If there any way to password protect the...
9
4337
by: RN1 | last post by:
When a server encounters the line Response.Redirect("abcd.asp") in a ASP script, the server tells the browser that it has to be redirected to another page (which is abcd.asp, in this case). The browser then makes a new request to the server to redirect itself to abcd.asp after which the user gets redirected to abcd.asp. But in case of Server.Execute (or Server.Transfer), when the server
0
8049
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7985
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8469
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8322
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5471
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3953
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4013
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2461
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.