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

123
Vistas
Storing Data in Models (.net.) vs sessionStorage

Generic best practices question.

https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage

I recently started a new job as web developer. Fairly fresh out of college and pretty new to .net. I was given a pretty simple task to start with, which is great.

so I have a table and a user can select someone in a table and go to a page for information about the thing they selected. they can them change their mind and go back to the page with the table in which case the option that they had previously selected should be preselected.

I was trying to go about it with the link above and storing the information through js sessions. Another person on my team steered me away from that and said I should just be adding variables to the .net models and passing data through the controller instead of storing it in the browser. while both ways obtain the same result I still like my way better because I feel like I'm not continuing to clutter an already cluttered model. on the other hand I guess it could be possible to clutter session storage in the same way.

I should mention session storage is not being used at all currently, so it may be easier to not use more than one MO, though I think it is a matter of preference.

I think session storage is probably insecure if we were storing something important but they already have access to whatever they'd see in session storage in this case. Does anyone have any thoughts on if there is a "right way?"

I think for starters I'll probably do it his way. Not exactly looking to make waves in a new company without strong Experience or at least documentation to back up what I say.

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