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

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

gtk - Python Window Resize -

c# - read full xml file data over tcp -