Hello,
I have a page such that each user can see only a corresponding
(personal) part of the page. In the beginning I wanted to perform
initialization of users (by asking there names and passwords and
comparing them with names and passwords stored in database), than I
planed (if comparison was successful) to set a corresponding value of
variable $user_name and on the mentioned page with the help of the
"if"-operator to check whether value of $user_name allows to
display given part of the page. However, I have realized that any user
can "by hand" set value of variable $user_name which (value) does
not correspond to the correct user name of this person. Does it means
that only possible solution of this problem is to check name-password
pare (whether it (pare) exists in database) on each page?
I have a page such that each user can see only a corresponding
(personal) part of the page. In the beginning I wanted to perform
initialization of users (by asking there names and passwords and
comparing them with names and passwords stored in database), than I
planed (if comparison was successful) to set a corresponding value of
variable $user_name and on the mentioned page with the help of the
"if"-operator to check whether value of $user_name allows to
display given part of the page. However, I have realized that any user
can "by hand" set value of variable $user_name which (value) does
not correspond to the correct user name of this person. Does it means
that only possible solution of this problem is to check name-password
pare (whether it (pare) exists in database) on each page?
Comment