PHP SESSIONS Question -


When a user logs in then I should report it there $ _ session ['user_id'] user id or not? For example, just like the code below.

  mysqli_real_escape_string ($ mysqli, htmlentities (strip_tags ($ _ session ['user_id']))); Session data is stored server-side, so it must be approved before being added to it.  $ _ session  in the first place. 


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -