Passing a header variable to another page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dima9917
    New Member
    • Dec 2012
    • 1

    Passing a header variable to another page

    I'm trying to pass a header variable "SMUSERDN" with a value of "reportingo nly" to this page - https://qaanz13.corp.ad.local/cv/logproc.asp.

    The page I'm redirecting from looks like this:

    Code:
    <%@ LANGUAGE="VBSCRIPT" %>
    <%
    Option Explicit
    On Error Resume Next
    %>
    
    <%
    Response.AddHeader "SMUSERDN","reportingonly"
    
    Response.Redirect "https://qaanz13.corp.ad.local/cv/logproc.asp"
    %>
    I can't get this to work.
    The request doesn't seem to have that header variable in it.
    Any ideas on what I am doing wrong?
    Last edited by zmbd; Dec 8 '12, 01:17 AM. Reason: [Z{Please use the <CODE/> button to format code/html/sql}]
  • PsychoCoder
    Recognized Expert Contributor
    • Jul 2010
    • 465

    #2
    Try taking
    Code:
    On Error Resume Next
    out and see if an error is being generated that you're not seeing

    Comment

    Working...