The problem with HTTPS and HTTP

my current front-end page is http, and then I will store userId in localStorage when I log in for the first time.
because of program defects, as long as localStorage.setItem ("userId",55). If you refresh it, you will be able to display 55% of the private information.
you don"t need an account password, which means: you can see all the user information as long as you have a set of account passwords that you can log in to.

if I use https. Although the requests are encrypted, the front-end program has not changed, so if I continue to localStorage.setItem ("userId",54), I can still see 54 private information.

Mar.13,2021

as you said, the network transmission part encrypted by https has little to do with the application layer

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5b18f-455f5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5b18f-455f5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?