Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

204
Vistas
Some C# session variables lost after javascript redirect

I have a c# asp.net page that runs inside a frame. This page sets some session variables and then redirects to a new .aspx page which calls some JS to jump the site out of the frame.

So it's something like:

Page1.aspx: Set Session["xyz"]="123" -> Response.Redirect("Page2.aspx", false) -> Page2.aspx: <script>top.location = 'Page3.aspx'</script>

When Page3.aspx loads, the variables I set on Page1 have a value of null. I can see at Page2, before the js does the redirect, that the variables still have their value.

On Page3, any variables that were set prior to Page1 loading also still have their values. There is nowhere in the code where the values are explicitly getting set to null.

I hope I've explained that well enough but I really have no idea what is going on and can't seem to find an answer anywhere. Any help gratefully received! Thanks

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda