ok im a newbie on sessions lets imagine that we have a little login site,
heres a logic
- login
- if password right = use $_SESSION[isaloginuser] = 1
- check session to see menus with if $_SESSION[isaloginuser] = 1
- show the menus
- the user want to logoff
- unset session
- destroy session system
what it use
session_register
session_destroy
session_unset
session_start
where does the session_id
& the session_regenerate
or session_name
goes in ?
at php site it says
session_id() is used to get or set the session id for the current session.
i still just dont get it, why do we need them anyway ? in real environment what does it do ?