Questions tagged as 'session'

1
answer

What is required to create an authentication system (login / password / session) in PHP? What important points should I be concerned about? [duplicate]

I want to create a site with my own authentication system, without using anything ready. I would like to know the steps for creating this system, in order. If there is a best practice convention and what points I can not forget to take i...
asked by 13.02.2014 / 19:44
1
answer

How to save button click id in a PHP session?

I have the following table: <tr id="teste"> <?php echo '<form id="teste" action="banco.php" method="post"><td><input id="bike'.$fetch['referenciageral'].'" name="bike'.$fetch['referenciageral'].'" onchange="this....
asked by 24.10.2018 / 14:42
1
answer

The session is not being updated

Session does not want to accept method value POST . It saves the first time, but after the page is updated it disappears. <?php if(isset($_SESSION['b'])){ if ($_SESSION['b'] !=""){ $_POST['email'] =$_SESSION['b'];...
asked by 26.03.2018 / 00:07
2
answers

Problem with session_register

I have a script here but when I open the file ptc.php in the browser it is blank, I think it is the php version of my hosting that is making this error. I use PHP 5.4.26 How do I update the code? ptc.php <?php session_start(...
asked by 12.06.2014 / 14:16
1
answer

Destroy session when exiting the page [duplicate]

I have a system for budgeting, and I need to see a confirmation message when you close the page, if you really want to leave the page. If she confirms, destroy the session. Session I need: $_SESSION['produtos']     
asked by 11.07.2018 / 15:54