Re: Server.transfer and ssl
From: Kevin Spencer (kevin_at_takempis.com)
Date: 03/12/04
- Next message: Brad Markisohn: "Re: Tools"
- Previous message: mklapp: "RE: Bug with DataGrid that is rebound on every request"
- In reply to: Gigino: "Re: Server.transfer and ssl"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 12 Mar 2004 08:59:49 -0500
It is the "https" in the url that instructs the server to use SSL, and the
"http" in the url that tells the server to switch back to non-SSL. It is the
browser request that initialtes the switch. Using Server.Transfer doesn't
give the browser the opportunity to specify a protocol. Even in a secured
page, if the links on the client are relative, the browser simply appends
the protocol and domain information (from the current page request) to the
relative pathe in its request, so that links in a client-side page that
change the protocol must be absolute, including the protocol. You may want
to try Response.Redirect, which passes a url to the browser, instructing to
make a fresh request for that url.
-- HTH, Kevin Spencer .Net Developer Microsoft MVP Big things are made up of lots of little things. "Gigino" <realthing999@yahoo.it> wrote in message news:18b07ef0.0403120516.129a6efb@posting.google.com... > I need to protect only few pages, not all... so i wanted to use ssl > only when needed for performance reasons. > > "Chad Z. Hower aka Kudzu" <cpub@hower.org> wrote in message news:<Xns9496A311255B5cpub@127.0.0.1>... > > realthing999@yahoo.it (Gigino) wrote in > > news:18b07ef0.0402210320.485d9ecf@posting.google.com: > > > page using Secure Socket Layer; the problem is: > > > i call the page web form http://server/page1.aspx; when i submit this > > > form, i wanted to use the server.transfer to go to > > > https://server/page2.aspx with ssl, but the Transfer method doesn't > > > allow absolute path. Is there a way to do something like that or need > > > i to call with https all my pages? > > > > Why not just have the user start at https://server/page1.aspx?
- Next message: Brad Markisohn: "Re: Tools"
- Previous message: mklapp: "RE: Bug with DataGrid that is rebound on every request"
- In reply to: Gigino: "Re: Server.transfer and ssl"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|