ASP Sessions not working live

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guy Hocking

    ASP Sessions not working live

    Hi there,

    I am having trouble with an ASP login that uses sessions to control access
    to certain pages. However the sessions are not being carried accross upon
    using response.redire ct.
    I realise that this is the case that DNS names and IP addresses vary upon
    whether it works or not, however how can i get around using sessions live on
    the internet? and make them work>?

    Hope you guys can help

    Ta

    --
    Guy

    Servant of the most high God, empowered by the Holy Spirit, humbly following my savior Jesus Christ


    Please remove ANTI and SPAM from my
    email address before sending me an email.


  • Ray at

    #2
    Re: ASP Sessions not working live

    Are you response.redire cting to a different domain? What does your redirect
    look like?

    Ray at work

    "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
    news:Oj0bfPd4DH A.1052@TK2MSFTN GP12.phx.gbl...[color=blue]
    > Hi there,
    >
    > I am having trouble with an ASP login that uses sessions to control access
    > to certain pages. However the sessions are not being carried accross upon
    > using response.redire ct.
    > I realise that this is the case that DNS names and IP addresses vary upon
    > whether it works or not, however how can i get around using sessions live[/color]
    on[color=blue]
    > the internet? and make them work>?
    >
    > Hope you guys can help
    >
    > Ta
    >
    > --
    > Guy
    >
    > www.bradflack.com
    >
    > Please remove ANTI and SPAM from my
    > email address before sending me an email.
    >
    >[/color]


    Comment

    • Guy Hocking

      #3
      Re: ASP Sessions not working live

      ****
      If Not RecordSet.EOF Then
      Dim struserLevel, strUName
      struserLevel = RecordSet.Field s("UserLevel" )
      strUName = RecordSet.Field s("UName")
      Session("UserLe vel") = cint(struserLev el)
      Session("UName" ) = strUName
      Response.Redire ct("admin3/admin.asp")
      ****

      Not to a different domain at all, in a sub folder of the same website, But
      the redirect works, its the session that doesnt get carries accross




      --
      Guy
      Servant of the most high God, empowered by the Holy Spirit, humbly following my savior Jesus Christ


      Please remove ANTI and SPAM from my
      email address before sending me an email.
      "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
      news:eFkACXd4DH A.632@TK2MSFTNG P12.phx.gbl...[color=blue]
      > Are you response.redire cting to a different domain? What does your[/color]
      redirect[color=blue]
      > look like?
      >
      > Ray at work
      >
      > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
      > news:Oj0bfPd4DH A.1052@TK2MSFTN GP12.phx.gbl...[color=green]
      > > Hi there,
      > >
      > > I am having trouble with an ASP login that uses sessions to control[/color][/color]
      access[color=blue][color=green]
      > > to certain pages. However the sessions are not being carried accross[/color][/color]
      upon[color=blue][color=green]
      > > using response.redire ct.
      > > I realise that this is the case that DNS names and IP addresses vary[/color][/color]
      upon[color=blue][color=green]
      > > whether it works or not, however how can i get around using sessions[/color][/color]
      live[color=blue]
      > on[color=green]
      > > the internet? and make them work>?
      > >
      > > Hope you guys can help
      > >
      > > Ta
      > >
      > > --
      > > Guy
      > >
      > > www.bradflack.com
      > >
      > > Please remove ANTI and SPAM from my
      > > email address before sending me an email.
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Ray at

        #4
        Re: ASP Sessions not working live

        If you have the directory defined as its own application in IIS, the session
        info will not carry to it. That's my guess as to why session data isn't
        carrying, assuming that's what's happening.

        http://www.aspfaq.com/show.asp?id=2157 for other causes.

        Ray at work

        "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
        news:uSPHAfd4DH A.2404@TK2MSFTN GP12.phx.gbl...[color=blue]
        > ****
        > If Not RecordSet.EOF Then
        > Dim struserLevel, strUName
        > struserLevel = RecordSet.Field s("UserLevel" )
        > strUName = RecordSet.Field s("UName")
        > Session("UserLe vel") = cint(struserLev el)
        > Session("UName" ) = strUName
        > Response.Redire ct("admin3/admin.asp")
        > ****
        >
        > Not to a different domain at all, in a sub folder of the same website, But
        > the redirect works, its the session that doesnt get carries accross
        >
        >
        >
        >
        > --
        > Guy
        > www.bradflack.com
        >
        > Please remove ANTI and SPAM from my
        > email address before sending me an email.
        > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
        > news:eFkACXd4DH A.632@TK2MSFTNG P12.phx.gbl...[color=green]
        > > Are you response.redire cting to a different domain? What does your[/color]
        > redirect[color=green]
        > > look like?
        > >
        > > Ray at work
        > >
        > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
        > > news:Oj0bfPd4DH A.1052@TK2MSFTN GP12.phx.gbl...[color=darkred]
        > > > Hi there,
        > > >
        > > > I am having trouble with an ASP login that uses sessions to control[/color][/color]
        > access[color=green][color=darkred]
        > > > to certain pages. However the sessions are not being carried accross[/color][/color]
        > upon[color=green][color=darkred]
        > > > using response.redire ct.
        > > > I realise that this is the case that DNS names and IP addresses vary[/color][/color]
        > upon[color=green][color=darkred]
        > > > whether it works or not, however how can i get around using sessions[/color][/color]
        > live[color=green]
        > > on[color=darkred]
        > > > the internet? and make them work>?
        > > >
        > > > Hope you guys can help
        > > >
        > > > Ta
        > > >
        > > > --
        > > > Guy
        > > >
        > > > www.bradflack.com
        > > >
        > > > Please remove ANTI and SPAM from my
        > > > email address before sending me an email.
        > > >
        > > >[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Guy Hocking

          #5
          Re: ASP Sessions not working live

          mmm, it works on my local test server no problem, very strange, dont think
          its any of the things listed...

          any ideas what i can do about it?

          --
          Guy

          Servant of the most high God, empowered by the Holy Spirit, humbly following my savior Jesus Christ


          Please remove ANTI and SPAM from my
          email address before sending me an email.
          "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
          news:#jR8kjd4DH A.2648@tk2msftn gp13.phx.gbl...[color=blue]
          > If you have the directory defined as its own application in IIS, the[/color]
          session[color=blue]
          > info will not carry to it. That's my guess as to why session data isn't
          > carrying, assuming that's what's happening.
          >
          > http://www.aspfaq.com/show.asp?id=2157 for other causes.
          >
          > Ray at work
          >
          > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
          > news:uSPHAfd4DH A.2404@TK2MSFTN GP12.phx.gbl...[color=green]
          > > ****
          > > If Not RecordSet.EOF Then
          > > Dim struserLevel, strUName
          > > struserLevel = RecordSet.Field s("UserLevel" )
          > > strUName = RecordSet.Field s("UName")
          > > Session("UserLe vel") = cint(struserLev el)
          > > Session("UName" ) = strUName
          > > Response.Redire ct("admin3/admin.asp")
          > > ****
          > >
          > > Not to a different domain at all, in a sub folder of the same website,[/color][/color]
          But[color=blue][color=green]
          > > the redirect works, its the session that doesnt get carries accross
          > >
          > >
          > >
          > >
          > > --
          > > Guy
          > > www.bradflack.com
          > >
          > > Please remove ANTI and SPAM from my
          > > email address before sending me an email.
          > > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
          > > news:eFkACXd4DH A.632@TK2MSFTNG P12.phx.gbl...[color=darkred]
          > > > Are you response.redire cting to a different domain? What does your[/color]
          > > redirect[color=darkred]
          > > > look like?
          > > >
          > > > Ray at work
          > > >
          > > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
          > > > news:Oj0bfPd4DH A.1052@TK2MSFTN GP12.phx.gbl...
          > > > > Hi there,
          > > > >
          > > > > I am having trouble with an ASP login that uses sessions to control[/color]
          > > access[color=darkred]
          > > > > to certain pages. However the sessions are not being carried accross[/color]
          > > upon[color=darkred]
          > > > > using response.redire ct.
          > > > > I realise that this is the case that DNS names and IP addresses vary[/color]
          > > upon[color=darkred]
          > > > > whether it works or not, however how can i get around using sessions[/color]
          > > live[color=darkred]
          > > > on
          > > > > the internet? and make them work>?
          > > > >
          > > > > Hope you guys can help
          > > > >
          > > > > Ta
          > > > >
          > > > > --
          > > > > Guy
          > > > >
          > > > > www.bradflack.com
          > > > >
          > > > > Please remove ANTI and SPAM from my
          > > > > email address before sending me an email.
          > > > >
          > > > >
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • Ray at

            #6
            Re: ASP Sessions not working live

            > > If you have the directory defined as its own application in IIS, the[color=blue]
            > session[color=green]
            > > info will not carry to it.[/color][/color]

            Did you check that?

            Ray at work

            "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
            news:ef9VErd4DH A.3224@tk2msftn gp13.phx.gbl...[color=blue]
            > mmm, it works on my local test server no problem, very strange, dont think
            > its any of the things listed...
            >
            > any ideas what i can do about it?
            >
            > --
            > Guy
            >
            > www.bradflack.com
            >
            > Please remove ANTI and SPAM from my
            > email address before sending me an email.
            > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
            > news:#jR8kjd4DH A.2648@tk2msftn gp13.phx.gbl...[color=green]
            > > If you have the directory defined as its own application in IIS, the[/color]
            > session[color=green]
            > > info will not carry to it. That's my guess as to why session data isn't
            > > carrying, assuming that's what's happening.
            > >
            > > http://www.aspfaq.com/show.asp?id=2157 for other causes.
            > >
            > > Ray at work
            > >
            > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
            > > news:uSPHAfd4DH A.2404@TK2MSFTN GP12.phx.gbl...[color=darkred]
            > > > ****
            > > > If Not RecordSet.EOF Then
            > > > Dim struserLevel, strUName
            > > > struserLevel = RecordSet.Field s("UserLevel" )
            > > > strUName = RecordSet.Field s("UName")
            > > > Session("UserLe vel") = cint(struserLev el)
            > > > Session("UName" ) = strUName
            > > > Response.Redire ct("admin3/admin.asp")
            > > > ****
            > > >
            > > > Not to a different domain at all, in a sub folder of the same website,[/color][/color]
            > But[color=green][color=darkred]
            > > > the redirect works, its the session that doesnt get carries accross
            > > >
            > > >
            > > >
            > > >
            > > > --
            > > > Guy
            > > > www.bradflack.com
            > > >
            > > > Please remove ANTI and SPAM from my
            > > > email address before sending me an email.
            > > > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in[/color][/color][/color]
            message[color=blue][color=green][color=darkred]
            > > > news:eFkACXd4DH A.632@TK2MSFTNG P12.phx.gbl...
            > > > > Are you response.redire cting to a different domain? What does your
            > > > redirect
            > > > > look like?
            > > > >
            > > > > Ray at work
            > > > >
            > > > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
            > > > > news:Oj0bfPd4DH A.1052@TK2MSFTN GP12.phx.gbl...
            > > > > > Hi there,
            > > > > >
            > > > > > I am having trouble with an ASP login that uses sessions to[/color][/color][/color]
            control[color=blue][color=green][color=darkred]
            > > > access
            > > > > > to certain pages. However the sessions are not being carried[/color][/color][/color]
            accross[color=blue][color=green][color=darkred]
            > > > upon
            > > > > > using response.redire ct.
            > > > > > I realise that this is the case that DNS names and IP addresses[/color][/color][/color]
            vary[color=blue][color=green][color=darkred]
            > > > upon
            > > > > > whether it works or not, however how can i get around using[/color][/color][/color]
            sessions[color=blue][color=green][color=darkred]
            > > > live
            > > > > on
            > > > > > the internet? and make them work>?
            > > > > >
            > > > > > Hope you guys can help
            > > > > >
            > > > > > Ta
            > > > > >
            > > > > > --
            > > > > > Guy
            > > > > >
            > > > > > www.bradflack.com
            > > > > >
            > > > > > Please remove ANTI and SPAM from my
            > > > > > email address before sending me an email.
            > > > > >
            > > > > >
            > > > >
            > > > >
            > > >
            > > >[/color]
            > >
            > >[/color]
            >
            >[/color]


            Comment

            • Guy Hocking

              #7
              Re: ASP Sessions not working live

              im not quite sure what you mean, the page is the application, outside the
              directory, and it redirects to a page inside another directory on the same
              site

              --
              Guy

              Servant of the most high God, empowered by the Holy Spirit, humbly following my savior Jesus Christ


              Please remove ANTI and SPAM from my
              email address before sending me an email.
              "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
              news:e3z1mud4DH A.1504@TK2MSFTN GP12.phx.gbl...[color=blue][color=green][color=darkred]
              > > > If you have the directory defined as its own application in IIS, the[/color]
              > > session[color=darkred]
              > > > info will not carry to it.[/color][/color]
              >
              > Did you check that?
              >
              > Ray at work
              >
              > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
              > news:ef9VErd4DH A.3224@tk2msftn gp13.phx.gbl...[color=green]
              > > mmm, it works on my local test server no problem, very strange, dont[/color][/color]
              think[color=blue][color=green]
              > > its any of the things listed...
              > >
              > > any ideas what i can do about it?
              > >
              > > --
              > > Guy
              > >
              > > www.bradflack.com
              > >
              > > Please remove ANTI and SPAM from my
              > > email address before sending me an email.
              > > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
              > > news:#jR8kjd4DH A.2648@tk2msftn gp13.phx.gbl...[color=darkred]
              > > > If you have the directory defined as its own application in IIS, the[/color]
              > > session[color=darkred]
              > > > info will not carry to it. That's my guess as to why session data[/color][/color][/color]
              isn't[color=blue][color=green][color=darkred]
              > > > carrying, assuming that's what's happening.
              > > >
              > > > http://www.aspfaq.com/show.asp?id=2157 for other causes.
              > > >
              > > > Ray at work
              > > >
              > > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
              > > > news:uSPHAfd4DH A.2404@TK2MSFTN GP12.phx.gbl...
              > > > > ****
              > > > > If Not RecordSet.EOF Then
              > > > > Dim struserLevel, strUName
              > > > > struserLevel = RecordSet.Field s("UserLevel" )
              > > > > strUName = RecordSet.Field s("UName")
              > > > > Session("UserLe vel") = cint(struserLev el)
              > > > > Session("UName" ) = strUName
              > > > > Response.Redire ct("admin3/admin.asp")
              > > > > ****
              > > > >
              > > > > Not to a different domain at all, in a sub folder of the same[/color][/color][/color]
              website,[color=blue][color=green]
              > > But[color=darkred]
              > > > > the redirect works, its the session that doesnt get carries accross
              > > > >
              > > > >
              > > > >
              > > > >
              > > > > --
              > > > > Guy
              > > > > www.bradflack.com
              > > > >
              > > > > Please remove ANTI and SPAM from my
              > > > > email address before sending me an email.
              > > > > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in[/color][/color]
              > message[color=green][color=darkred]
              > > > > news:eFkACXd4DH A.632@TK2MSFTNG P12.phx.gbl...
              > > > > > Are you response.redire cting to a different domain? What does[/color][/color][/color]
              your[color=blue][color=green][color=darkred]
              > > > > redirect
              > > > > > look like?
              > > > > >
              > > > > > Ray at work
              > > > > >
              > > > > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
              > > > > > news:Oj0bfPd4DH A.1052@TK2MSFTN GP12.phx.gbl...
              > > > > > > Hi there,
              > > > > > >
              > > > > > > I am having trouble with an ASP login that uses sessions to[/color][/color]
              > control[color=green][color=darkred]
              > > > > access
              > > > > > > to certain pages. However the sessions are not being carried[/color][/color]
              > accross[color=green][color=darkred]
              > > > > upon
              > > > > > > using response.redire ct.
              > > > > > > I realise that this is the case that DNS names and IP addresses[/color][/color]
              > vary[color=green][color=darkred]
              > > > > upon
              > > > > > > whether it works or not, however how can i get around using[/color][/color]
              > sessions[color=green][color=darkred]
              > > > > live
              > > > > > on
              > > > > > > the internet? and make them work>?
              > > > > > >
              > > > > > > Hope you guys can help
              > > > > > >
              > > > > > > Ta
              > > > > > >
              > > > > > > --
              > > > > > > Guy
              > > > > > >
              > > > > > > www.bradflack.com
              > > > > > >
              > > > > > > Please remove ANTI and SPAM from my
              > > > > > > email address before sending me an email.
              > > > > > >
              > > > > > >
              > > > > >
              > > > > >
              > > > >
              > > > >
              > > >
              > > >[/color]
              > >
              > >[/color]
              >
              >[/color]


              Comment

              • Ray at

                #8
                Re: ASP Sessions not working live

                Open your IIS manager on the live server.
                Go to the site in question.
                Right click on this "admin3" directory.
                Click Properties

                On the directory tab, at the bottom, is an "Applicatio n Settings" area.
                There is a textbox with a label of "Applicatio n Name" to the left. To the
                right of that textbox is a command button. That button will either say
                Create or Remove. If it says Remove, that means that admin3 is its own
                application (with its own sessions, global.asa, etc.).

                Ray at work

                "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                news:OIcVQ2d4DH A.632@TK2MSFTNG P12.phx.gbl...[color=blue]
                > im not quite sure what you mean, the page is the application, outside the
                > directory, and it redirects to a page inside another directory on the same
                > site
                >
                > --
                > Guy
                >
                > www.bradflack.com
                >
                > Please remove ANTI and SPAM from my
                > email address before sending me an email.
                > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
                > news:e3z1mud4DH A.1504@TK2MSFTN GP12.phx.gbl...[color=green][color=darkred]
                > > > > If you have the directory defined as its own application in IIS, the
                > > > session
                > > > > info will not carry to it.[/color]
                > >
                > > Did you check that?
                > >
                > > Ray at work
                > >
                > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                > > news:ef9VErd4DH A.3224@tk2msftn gp13.phx.gbl...[color=darkred]
                > > > mmm, it works on my local test server no problem, very strange, dont[/color][/color]
                > think[color=green][color=darkred]
                > > > its any of the things listed...
                > > >
                > > > any ideas what i can do about it?
                > > >
                > > > --
                > > > Guy
                > > >
                > > > www.bradflack.com
                > > >
                > > > Please remove ANTI and SPAM from my
                > > > email address before sending me an email.
                > > > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in[/color][/color][/color]
                message[color=blue][color=green][color=darkred]
                > > > news:#jR8kjd4DH A.2648@tk2msftn gp13.phx.gbl...
                > > > > If you have the directory defined as its own application in IIS, the
                > > > session
                > > > > info will not carry to it. That's my guess as to why session data[/color][/color]
                > isn't[color=green][color=darkred]
                > > > > carrying, assuming that's what's happening.
                > > > >
                > > > > http://www.aspfaq.com/show.asp?id=2157 for other causes.
                > > > >
                > > > > Ray at work
                > > > >
                > > > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                > > > > news:uSPHAfd4DH A.2404@TK2MSFTN GP12.phx.gbl...
                > > > > > ****
                > > > > > If Not RecordSet.EOF Then
                > > > > > Dim struserLevel, strUName
                > > > > > struserLevel = RecordSet.Field s("UserLevel" )
                > > > > > strUName = RecordSet.Field s("UName")
                > > > > > Session("UserLe vel") = cint(struserLev el)
                > > > > > Session("UName" ) = strUName
                > > > > > Response.Redire ct("admin3/admin.asp")
                > > > > > ****
                > > > > >
                > > > > > Not to a different domain at all, in a sub folder of the same[/color][/color]
                > website,[color=green][color=darkred]
                > > > But
                > > > > > the redirect works, its the session that doesnt get carries[/color][/color][/color]
                accross[color=blue][color=green][color=darkred]
                > > > > >
                > > > > >
                > > > > >
                > > > > >
                > > > > > --
                > > > > > Guy
                > > > > > www.bradflack.com
                > > > > >
                > > > > > Please remove ANTI and SPAM from my
                > > > > > email address before sending me an email.
                > > > > > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in[/color]
                > > message[color=darkred]
                > > > > > news:eFkACXd4DH A.632@TK2MSFTNG P12.phx.gbl...
                > > > > > > Are you response.redire cting to a different domain? What does[/color][/color]
                > your[color=green][color=darkred]
                > > > > > redirect
                > > > > > > look like?
                > > > > > >
                > > > > > > Ray at work
                > > > > > >
                > > > > > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                > > > > > > news:Oj0bfPd4DH A.1052@TK2MSFTN GP12.phx.gbl...
                > > > > > > > Hi there,
                > > > > > > >
                > > > > > > > I am having trouble with an ASP login that uses sessions to[/color]
                > > control[color=darkred]
                > > > > > access
                > > > > > > > to certain pages. However the sessions are not being carried[/color]
                > > accross[color=darkred]
                > > > > > upon
                > > > > > > > using response.redire ct.
                > > > > > > > I realise that this is the case that DNS names and IP[/color][/color][/color]
                addresses[color=blue][color=green]
                > > vary[color=darkred]
                > > > > > upon
                > > > > > > > whether it works or not, however how can i get around using[/color]
                > > sessions[color=darkred]
                > > > > > live
                > > > > > > on
                > > > > > > > the internet? and make them work>?
                > > > > > > >
                > > > > > > > Hope you guys can help
                > > > > > > >
                > > > > > > > Ta
                > > > > > > >
                > > > > > > > --
                > > > > > > > Guy
                > > > > > > >
                > > > > > > > www.bradflack.com
                > > > > > > >
                > > > > > > > Please remove ANTI and SPAM from my
                > > > > > > > email address before sending me an email.
                > > > > > > >
                > > > > > > >
                > > > > > >
                > > > > > >
                > > > > >
                > > > > >
                > > > >
                > > > >
                > > >
                > > >[/color]
                > >
                > >[/color]
                >
                >[/color]


                Comment

                • Guy Hocking

                  #9
                  Re: ASP Sessions not working live

                  i dont have access to the live IIS server, as its hosted with another
                  company, but i have now put the page within the same directory as the page
                  with the response.redire ct, still doesnt work ;-(

                  --
                  Guy
                  Servant of the most high God, empowered by the Holy Spirit, humbly following my savior Jesus Christ


                  Please remove ANTI and SPAM from my
                  email address before sending me an email.
                  "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
                  news:emi$k7d4DH A.3416@tk2msftn gp13.phx.gbl...[color=blue]
                  > Open your IIS manager on the live server.
                  > Go to the site in question.
                  > Right click on this "admin3" directory.
                  > Click Properties
                  >
                  > On the directory tab, at the bottom, is an "Applicatio n Settings" area.
                  > There is a textbox with a label of "Applicatio n Name" to the left. To the
                  > right of that textbox is a command button. That button will either say
                  > Create or Remove. If it says Remove, that means that admin3 is its own
                  > application (with its own sessions, global.asa, etc.).
                  >
                  > Ray at work
                  >
                  > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                  > news:OIcVQ2d4DH A.632@TK2MSFTNG P12.phx.gbl...[color=green]
                  > > im not quite sure what you mean, the page is the application, outside[/color][/color]
                  the[color=blue][color=green]
                  > > directory, and it redirects to a page inside another directory on the[/color][/color]
                  same[color=blue][color=green]
                  > > site
                  > >
                  > > --
                  > > Guy
                  > >
                  > > www.bradflack.com
                  > >
                  > > Please remove ANTI and SPAM from my
                  > > email address before sending me an email.
                  > > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
                  > > news:e3z1mud4DH A.1504@TK2MSFTN GP12.phx.gbl...[color=darkred]
                  > > > > > If you have the directory defined as its own application in IIS,[/color][/color][/color]
                  the[color=blue][color=green][color=darkred]
                  > > > > session
                  > > > > > info will not carry to it.
                  > > >
                  > > > Did you check that?
                  > > >
                  > > > Ray at work
                  > > >
                  > > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                  > > > news:ef9VErd4DH A.3224@tk2msftn gp13.phx.gbl...
                  > > > > mmm, it works on my local test server no problem, very strange, dont[/color]
                  > > think[color=darkred]
                  > > > > its any of the things listed...
                  > > > >
                  > > > > any ideas what i can do about it?
                  > > > >
                  > > > > --
                  > > > > Guy
                  > > > >
                  > > > > www.bradflack.com
                  > > > >
                  > > > > Please remove ANTI and SPAM from my
                  > > > > email address before sending me an email.
                  > > > > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in[/color][/color]
                  > message[color=green][color=darkred]
                  > > > > news:#jR8kjd4DH A.2648@tk2msftn gp13.phx.gbl...
                  > > > > > If you have the directory defined as its own application in IIS,[/color][/color][/color]
                  the[color=blue][color=green][color=darkred]
                  > > > > session
                  > > > > > info will not carry to it. That's my guess as to why session data[/color]
                  > > isn't[color=darkred]
                  > > > > > carrying, assuming that's what's happening.
                  > > > > >
                  > > > > > http://www.aspfaq.com/show.asp?id=2157 for other causes.
                  > > > > >
                  > > > > > Ray at work
                  > > > > >
                  > > > > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                  > > > > > news:uSPHAfd4DH A.2404@TK2MSFTN GP12.phx.gbl...
                  > > > > > > ****
                  > > > > > > If Not RecordSet.EOF Then
                  > > > > > > Dim struserLevel, strUName
                  > > > > > > struserLevel = RecordSet.Field s("UserLevel" )
                  > > > > > > strUName = RecordSet.Field s("UName")
                  > > > > > > Session("UserLe vel") = cint(struserLev el)
                  > > > > > > Session("UName" ) = strUName
                  > > > > > > Response.Redire ct("admin3/admin.asp")
                  > > > > > > ****
                  > > > > > >
                  > > > > > > Not to a different domain at all, in a sub folder of the same[/color]
                  > > website,[color=darkred]
                  > > > > But
                  > > > > > > the redirect works, its the session that doesnt get carries[/color][/color]
                  > accross[color=green][color=darkred]
                  > > > > > >
                  > > > > > >
                  > > > > > >
                  > > > > > >
                  > > > > > > --
                  > > > > > > Guy
                  > > > > > > www.bradflack.com
                  > > > > > >
                  > > > > > > Please remove ANTI and SPAM from my
                  > > > > > > email address before sending me an email.
                  > > > > > > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in
                  > > > message
                  > > > > > > news:eFkACXd4DH A.632@TK2MSFTNG P12.phx.gbl...
                  > > > > > > > Are you response.redire cting to a different domain? What does[/color]
                  > > your[color=darkred]
                  > > > > > > redirect
                  > > > > > > > look like?
                  > > > > > > >
                  > > > > > > > Ray at work
                  > > > > > > >
                  > > > > > > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                  > > > > > > > news:Oj0bfPd4DH A.1052@TK2MSFTN GP12.phx.gbl...
                  > > > > > > > > Hi there,
                  > > > > > > > >
                  > > > > > > > > I am having trouble with an ASP login that uses sessions to
                  > > > control
                  > > > > > > access
                  > > > > > > > > to certain pages. However the sessions are not being carried
                  > > > accross
                  > > > > > > upon
                  > > > > > > > > using response.redire ct.
                  > > > > > > > > I realise that this is the case that DNS names and IP[/color][/color]
                  > addresses[color=green][color=darkred]
                  > > > vary
                  > > > > > > upon
                  > > > > > > > > whether it works or not, however how can i get around using
                  > > > sessions
                  > > > > > > live
                  > > > > > > > on
                  > > > > > > > > the internet? and make them work>?
                  > > > > > > > >
                  > > > > > > > > Hope you guys can help
                  > > > > > > > >
                  > > > > > > > > Ta
                  > > > > > > > >
                  > > > > > > > > --
                  > > > > > > > > Guy
                  > > > > > > > >
                  > > > > > > > > www.bradflack.com
                  > > > > > > > >
                  > > > > > > > > Please remove ANTI and SPAM from my
                  > > > > > > > > email address before sending me an email.
                  > > > > > > > >
                  > > > > > > > >
                  > > > > > > >
                  > > > > > > >
                  > > > > > >
                  > > > > > >
                  > > > > >
                  > > > > >
                  > > > >
                  > > > >
                  > > >
                  > > >[/color]
                  > >
                  > >[/color]
                  >
                  >[/color]


                  Comment

                  • Ray at

                    #10
                    Re: ASP Sessions not working live


                    "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                    news:ec9z$Be4DH A.2132@TK2MSFTN GP10.phx.gbl...[color=blue]
                    > i dont have access to the live IIS server, as its hosted with another
                    > company, but i have now put the page within the same directory as the page
                    > with the response.redire ct, still doesnt work ;-(
                    >[/color]

                    Okay, we'll start over then. How do you know it doesn't work? What does
                    this do:

                    <%
                    If Not RecordSet.EOF Then
                    Dim struserLevel, strUName
                    struserLevel = RecordSet.Field s("UserLevel" )
                    strUName = RecordSet.Field s("UName")
                    Session("UserLe vel") = cint(struserLev el)

                    RESPONSE.WRITE STRUSERLEVEL
                    RESPONSE.WRITE "<BR>"
                    RESPONSE.WRITE Session("UserLe vel")
                    RESPONSE.END

                    Session("UName" ) = strUName
                    Response.Redire ct("admin3/admin.asp")
                    %>


                    Comment

                    • Guy Hocking

                      #11
                      Re: ASP Sessions not working live

                      Sorry its been so late getting back, long old weekend....

                      I did what you said and it displays what i want it to fine, on the same
                      page, but doesnt do the redirect (hence response.end)

                      Thanks for this

                      --
                      Guy

                      Servant of the most high God, empowered by the Holy Spirit, humbly following my savior Jesus Christ


                      Please remove ANTI and SPAM from my
                      email address before sending me an email.
                      "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
                      news:O6gIgIe4DH A.2332@TK2MSFTN GP10.phx.gbl...[color=blue]
                      >
                      > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                      > news:ec9z$Be4DH A.2132@TK2MSFTN GP10.phx.gbl...[color=green]
                      > > i dont have access to the live IIS server, as its hosted with another
                      > > company, but i have now put the page within the same directory as the[/color][/color]
                      page[color=blue][color=green]
                      > > with the response.redire ct, still doesnt work ;-(
                      > >[/color]
                      >
                      > Okay, we'll start over then. How do you know it doesn't work? What does
                      > this do:
                      >
                      > <%
                      > If Not RecordSet.EOF Then
                      > Dim struserLevel, strUName
                      > struserLevel = RecordSet.Field s("UserLevel" )
                      > strUName = RecordSet.Field s("UName")
                      > Session("UserLe vel") = cint(struserLev el)
                      >
                      > RESPONSE.WRITE STRUSERLEVEL
                      > RESPONSE.WRITE "<BR>"
                      > RESPONSE.WRITE Session("UserLe vel")
                      > RESPONSE.END
                      >
                      > Session("UName" ) = strUName
                      > Response.Redire ct("admin3/admin.asp")
                      > %>
                      >
                      >[/color]


                      Comment

                      • Guy Hocking

                        #12
                        Re: ASP Sessions not working live

                        However with the redirect in there it doesnt work, so why isnt the session
                        redirecting?


                        Thanks again
                        --
                        Guy

                        Servant of the most high God, empowered by the Holy Spirit, humbly following my savior Jesus Christ


                        Please remove ANTI and SPAM from my
                        email address before sending me an email.
                        "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                        news:eUC0X9D5DH A.2692@TK2MSFTN GP09.phx.gbl...[color=blue]
                        > Sorry its been so late getting back, long old weekend....
                        >
                        > I did what you said and it displays what i want it to fine, on the same
                        > page, but doesnt do the redirect (hence response.end)
                        >
                        > Thanks for this
                        >
                        > --
                        > Guy
                        >
                        > www.bradflack.com
                        >
                        > Please remove ANTI and SPAM from my
                        > email address before sending me an email.
                        > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
                        > news:O6gIgIe4DH A.2332@TK2MSFTN GP10.phx.gbl...[color=green]
                        > >
                        > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                        > > news:ec9z$Be4DH A.2132@TK2MSFTN GP10.phx.gbl...[color=darkred]
                        > > > i dont have access to the live IIS server, as its hosted with another
                        > > > company, but i have now put the page within the same directory as the[/color][/color]
                        > page[color=green][color=darkred]
                        > > > with the response.redire ct, still doesnt work ;-(
                        > > >[/color]
                        > >
                        > > Okay, we'll start over then. How do you know it doesn't work? What[/color][/color]
                        does[color=blue][color=green]
                        > > this do:
                        > >
                        > > <%
                        > > If Not RecordSet.EOF Then
                        > > Dim struserLevel, strUName
                        > > struserLevel = RecordSet.Field s("UserLevel" )
                        > > strUName = RecordSet.Field s("UName")
                        > > Session("UserLe vel") = cint(struserLev el)
                        > >
                        > > RESPONSE.WRITE STRUSERLEVEL
                        > > RESPONSE.WRITE "<BR>"
                        > > RESPONSE.WRITE Session("UserLe vel")
                        > > RESPONSE.END
                        > >
                        > > Session("UName" ) = strUName
                        > > Response.Redire ct("admin3/admin.asp")
                        > > %>
                        > >
                        > >[/color]
                        >
                        >[/color]


                        Comment

                        • Ray at

                          #13
                          Re: ASP Sessions not working live

                          This then takes us back to the original theories, one of which was that that
                          directory to which you are redirecting is part of a different application in
                          your IIS settings. If you do not have access to your server, ask your host
                          to check if it's an application or to remove the application settings of
                          that directory. If it's a virtual directory, it will be its own
                          application, by default.

                          Ray at home

                          "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                          news:OdPxJ$D5DH A.2392@TK2MSFTN GP10.phx.gbl...[color=blue]
                          > However with the redirect in there it doesnt work, so why isnt the session
                          > redirecting?
                          >
                          >
                          > Thanks again
                          > --
                          > Guy
                          >
                          > www.bradflack.com
                          >
                          > Please remove ANTI and SPAM from my
                          > email address before sending me an email.
                          > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                          > news:eUC0X9D5DH A.2692@TK2MSFTN GP09.phx.gbl...[color=green]
                          > > Sorry its been so late getting back, long old weekend....
                          > >
                          > > I did what you said and it displays what i want it to fine, on the same
                          > > page, but doesnt do the redirect (hence response.end)
                          > >
                          > > Thanks for this
                          > >
                          > > --
                          > > Guy
                          > >
                          > > www.bradflack.com
                          > >
                          > > Please remove ANTI and SPAM from my
                          > > email address before sending me an email.
                          > > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
                          > > news:O6gIgIe4DH A.2332@TK2MSFTN GP10.phx.gbl...[color=darkred]
                          > > >
                          > > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                          > > > news:ec9z$Be4DH A.2132@TK2MSFTN GP10.phx.gbl...
                          > > > > i dont have access to the live IIS server, as its hosted with[/color][/color][/color]
                          another[color=blue][color=green][color=darkred]
                          > > > > company, but i have now put the page within the same directory as[/color][/color][/color]
                          the[color=blue][color=green]
                          > > page[color=darkred]
                          > > > > with the response.redire ct, still doesnt work ;-(
                          > > > >
                          > > >
                          > > > Okay, we'll start over then. How do you know it doesn't work? What[/color][/color]
                          > does[color=green][color=darkred]
                          > > > this do:
                          > > >
                          > > > <%
                          > > > If Not RecordSet.EOF Then
                          > > > Dim struserLevel, strUName
                          > > > struserLevel = RecordSet.Field s("UserLevel" )
                          > > > strUName = RecordSet.Field s("UName")
                          > > > Session("UserLe vel") = cint(struserLev el)
                          > > >
                          > > > RESPONSE.WRITE STRUSERLEVEL
                          > > > RESPONSE.WRITE "<BR>"
                          > > > RESPONSE.WRITE Session("UserLe vel")
                          > > > RESPONSE.END
                          > > >
                          > > > Session("UName" ) = strUName
                          > > > Response.Redire ct("admin3/admin.asp")
                          > > > %>
                          > > >
                          > > >[/color]
                          > >
                          > >[/color]
                          >
                          >[/color]


                          Comment

                          • Guy Hocking

                            #14
                            Re: ASP Sessions not working live

                            Well it is in a directory of another site, so the root folder is infact not
                            the root folder.
                            So basically i need to tell the hosting company that it needs to be its own
                            application (the directory in which the index.htm page exists, or the
                            directory that the default.asp page exists?)

                            Cheers

                            --
                            Guy

                            Please remove ANTI and SPAM from my
                            email address before sending me an email.
                            "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
                            news:erzuMIE5DH A.1592@TK2MSFTN GP10.phx.gbl...[color=blue]
                            > This then takes us back to the original theories, one of which was that[/color]
                            that[color=blue]
                            > directory to which you are redirecting is part of a different application[/color]
                            in[color=blue]
                            > your IIS settings. If you do not have access to your server, ask your[/color]
                            host[color=blue]
                            > to check if it's an application or to remove the application settings of
                            > that directory. If it's a virtual directory, it will be its own
                            > application, by default.
                            >
                            > Ray at home
                            >
                            > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                            > news:OdPxJ$D5DH A.2392@TK2MSFTN GP10.phx.gbl...[color=green]
                            > > However with the redirect in there it doesnt work, so why isnt the[/color][/color]
                            session[color=blue][color=green]
                            > > redirecting?
                            > >
                            > >
                            > > Thanks again
                            > > --
                            > > Guy
                            > >
                            > > www.bradflack.com
                            > >
                            > > Please remove ANTI and SPAM from my
                            > > email address before sending me an email.
                            > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                            > > news:eUC0X9D5DH A.2692@TK2MSFTN GP09.phx.gbl...[color=darkred]
                            > > > Sorry its been so late getting back, long old weekend....
                            > > >
                            > > > I did what you said and it displays what i want it to fine, on the[/color][/color][/color]
                            same[color=blue][color=green][color=darkred]
                            > > > page, but doesnt do the redirect (hence response.end)
                            > > >
                            > > > Thanks for this
                            > > >
                            > > > --
                            > > > Guy
                            > > >
                            > > > www.bradflack.com
                            > > >
                            > > > Please remove ANTI and SPAM from my
                            > > > email address before sending me an email.
                            > > > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in[/color][/color][/color]
                            message[color=blue][color=green][color=darkred]
                            > > > news:O6gIgIe4DH A.2332@TK2MSFTN GP10.phx.gbl...
                            > > > >
                            > > > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                            > > > > news:ec9z$Be4DH A.2132@TK2MSFTN GP10.phx.gbl...
                            > > > > > i dont have access to the live IIS server, as its hosted with[/color][/color]
                            > another[color=green][color=darkred]
                            > > > > > company, but i have now put the page within the same directory as[/color][/color]
                            > the[color=green][color=darkred]
                            > > > page
                            > > > > > with the response.redire ct, still doesnt work ;-(
                            > > > > >
                            > > > >
                            > > > > Okay, we'll start over then. How do you know it doesn't work? What[/color]
                            > > does[color=darkred]
                            > > > > this do:
                            > > > >
                            > > > > <%
                            > > > > If Not RecordSet.EOF Then
                            > > > > Dim struserLevel, strUName
                            > > > > struserLevel = RecordSet.Field s("UserLevel" )
                            > > > > strUName = RecordSet.Field s("UName")
                            > > > > Session("UserLe vel") = cint(struserLev el)
                            > > > >
                            > > > > RESPONSE.WRITE STRUSERLEVEL
                            > > > > RESPONSE.WRITE "<BR>"
                            > > > > RESPONSE.WRITE Session("UserLe vel")
                            > > > > RESPONSE.END
                            > > > >
                            > > > > Session("UName" ) = strUName
                            > > > > Response.Redire ct("admin3/admin.asp")
                            > > > > %>
                            > > > >
                            > > > >
                            > > >
                            > > >[/color]
                            > >
                            > >[/color]
                            >
                            >[/color]


                            Comment

                            • Ray at

                              #15
                              Re: ASP Sessions not working live

                              It's a physical directory in another site that is setup as a virtual
                              directory in your first site? Chances are it is its own application then,
                              as when you setup a virtual directory in IIS like this, it defaults it to
                              being its own application. What you want to have them do is REMOVE the
                              application settings on this virtual directory. Take a look at your own
                              local server to see what I mean.

                              Ray at home

                              "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                              news:uZ9CNME5DH A.2580@TK2MSFTN GP11.phx.gbl...[color=blue]
                              > Well it is in a directory of another site, so the root folder is infact[/color]
                              not[color=blue]
                              > the root folder.
                              > So basically i need to tell the hosting company that it needs to be its[/color]
                              own[color=blue]
                              > application (the directory in which the index.htm page exists, or the
                              > directory that the default.asp page exists?)
                              >
                              > Cheers
                              >
                              > --
                              > Guy
                              >
                              > Please remove ANTI and SPAM from my
                              > email address before sending me an email.
                              > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
                              > news:erzuMIE5DH A.1592@TK2MSFTN GP10.phx.gbl...[color=green]
                              > > This then takes us back to the original theories, one of which was that[/color]
                              > that[color=green]
                              > > directory to which you are redirecting is part of a different[/color][/color]
                              application[color=blue]
                              > in[color=green]
                              > > your IIS settings. If you do not have access to your server, ask your[/color]
                              > host[color=green]
                              > > to check if it's an application or to remove the application settings of
                              > > that directory. If it's a virtual directory, it will be its own
                              > > application, by default.
                              > >
                              > > Ray at home
                              > >
                              > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                              > > news:OdPxJ$D5DH A.2392@TK2MSFTN GP10.phx.gbl...[color=darkred]
                              > > > However with the redirect in there it doesnt work, so why isnt the[/color][/color]
                              > session[color=green][color=darkred]
                              > > > redirecting?
                              > > >
                              > > >
                              > > > Thanks again
                              > > > --
                              > > > Guy
                              > > >
                              > > > www.bradflack.com
                              > > >
                              > > > Please remove ANTI and SPAM from my
                              > > > email address before sending me an email.
                              > > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                              > > > news:eUC0X9D5DH A.2692@TK2MSFTN GP09.phx.gbl...
                              > > > > Sorry its been so late getting back, long old weekend....
                              > > > >
                              > > > > I did what you said and it displays what i want it to fine, on the[/color][/color]
                              > same[color=green][color=darkred]
                              > > > > page, but doesnt do the redirect (hence response.end)
                              > > > >
                              > > > > Thanks for this
                              > > > >
                              > > > > --
                              > > > > Guy
                              > > > >
                              > > > > www.bradflack.com
                              > > > >
                              > > > > Please remove ANTI and SPAM from my
                              > > > > email address before sending me an email.
                              > > > > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in[/color][/color]
                              > message[color=green][color=darkred]
                              > > > > news:O6gIgIe4DH A.2332@TK2MSFTN GP10.phx.gbl...
                              > > > > >
                              > > > > > "Guy Hocking" <guy@ANTIbradfl ack.SPAMcom> wrote in message
                              > > > > > news:ec9z$Be4DH A.2132@TK2MSFTN GP10.phx.gbl...
                              > > > > > > i dont have access to the live IIS server, as its hosted with[/color]
                              > > another[color=darkred]
                              > > > > > > company, but i have now put the page within the same directory[/color][/color][/color]
                              as[color=blue][color=green]
                              > > the[color=darkred]
                              > > > > page
                              > > > > > > with the response.redire ct, still doesnt work ;-(
                              > > > > > >
                              > > > > >
                              > > > > > Okay, we'll start over then. How do you know it doesn't work?[/color][/color][/color]
                              What[color=blue][color=green][color=darkred]
                              > > > does
                              > > > > > this do:
                              > > > > >
                              > > > > > <%
                              > > > > > If Not RecordSet.EOF Then
                              > > > > > Dim struserLevel, strUName
                              > > > > > struserLevel = RecordSet.Field s("UserLevel" )
                              > > > > > strUName = RecordSet.Field s("UName")
                              > > > > > Session("UserLe vel") = cint(struserLev el)
                              > > > > >
                              > > > > > RESPONSE.WRITE STRUSERLEVEL
                              > > > > > RESPONSE.WRITE "<BR>"
                              > > > > > RESPONSE.WRITE Session("UserLe vel")
                              > > > > > RESPONSE.END
                              > > > > >
                              > > > > > Session("UName" ) = strUName
                              > > > > > Response.Redire ct("admin3/admin.asp")
                              > > > > > %>
                              > > > > >
                              > > > > >
                              > > > >
                              > > > >
                              > > >
                              > > >[/color]
                              > >
                              > >[/color]
                              >
                              >[/color]


                              Comment

                              Working...