php - Is unsetting $_SESSION variable a bad idea before setting session var? -
in page i'm designing, i'm storing data via $_session since i'm calling pages dynamically jquery wanted add security , unset($_session['var']) before set them in case happen. question if unsetting session bad idea before set, or valid?
it's unnecessary , have no effect.
if calling sensitive data through ajax calls, need secure against attacks, secure normal page - example having session-based login, , checking whether current user logged in!
Comments
Post a Comment