Avoid security warning when switch from pageA(https) to PageB (http).

Discussion in 'ASP .Net' started by Jeyakumar, Jun 27, 2006.

  1. Jeyakumar

    Jeyakumar Guest

    Hi,

    I am using following code to avoid security warning when switch from
    pageA(https) to PageB (http).


    'Output a redirector for the needed page to avoid a security warning.
    Response.Clear()
    'Add a refresh header to the response for the new path.
    Response.AddHeader("Refresh", "0;URL=PageB.aspx")
    ' Also, add JavaScript to replace the current location as backup.
    Response.Write("<html><head><title></title>")
    Response.Write("<!-- <script
    language=""javascript"">window.location.replace(""")
    Response.Write("PageB.aspx")
    Response.Write(""")</script> -->")
    Response.Write("</head><body></body></html>")
    Response.End()


    Working fine for most users. But some users say they do see only a blank
    page.

    Any idea what is missing above code.

    Thanks, J
     
    Jeyakumar, Jun 27, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?TWFyaw==?=
    Replies:
    1
    Views:
    448
    Curt_C [MVP]
    Apr 13, 2004
  2. =?Utf-8?B?SGF0aW0gQWxp?=

    security warning with https

    =?Utf-8?B?SGF0aW0gQWxp?=, Sep 1, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    610
    =?iso-8859-2?B?VmVkcmFuIFN1Ym90aeY=?=
    Sep 7, 2005
  3. =?Utf-8?B?RGFiYmxlcg==?=

    redirect from https to http w/o security warning

    =?Utf-8?B?RGFiYmxlcg==?=, Apr 27, 2006, in forum: ASP .Net
    Replies:
    6
    Views:
    18,323
    april198474
    Sep 23, 2009
  4. Jay

    passing a token from pageA.aspx to pageB.aspx

    Jay, Oct 10, 2006, in forum: ASP .Net Building Controls
    Replies:
    4
    Views:
    240
  5. Jeyakumar
    Replies:
    0
    Views:
    189
    Jeyakumar
    Jun 27, 2006
Loading...

Share This Page