Questions tagged as 'session'

1
answer

Help with e-mail form in steps

I'm sorry for the inconvenience, I'm creating a 3-page email form with 3 pages and each one is typed in the input, I've already read the session tutorial and I'm not able to print the first and second page data at the end. send the email, what w...
asked by 22.06.2016 / 17:47
2
answers

How to avoid user logout when closing browser with PHP?

I currently use SESSION . When I close the browser, it disconnects. How can I make a login at click on Continue connected, the user does not disconnect after closing?     
asked by 02.12.2017 / 17:05
2
answers

Destroying sessions in PHP

I was researching about logout functions in php and I saw examples like: if(isset($_SESSION)) { unset($_SESSION['minhaSessao']); //repetir para cada sessao session_unregister(); session_destroy(); } I wanted to know if t...
asked by 24.03.2015 / 18:32
1
answer

Delete php session when closing browser

I'm using CodeIgniter to develop a project that involves a restricted area. I am using session to store the data of the user that is logged in. I need to close this browser when I close the browser, remembering that I am using CodeIgniter...
asked by 19.12.2017 / 20:47
2
answers

Laravel - Session and Array

I need to create an array: array( 0 => 0, 1 => 0, 2 => 1, 3 => 0, 4 => 0, 5 => 1, 6 => 0) within a session: session('session_array') and then individually add and retrieve the values according...
asked by 13.05.2016 / 17:15
3
answers

How do I stop Apache (wamp) from killing the session alone?

I developed an application with laravel and left it running in wamp , but after a while it ends up killing the user session, I wonder if there is any setting so that it stops doing it? Thanks!     
asked by 01.09.2016 / 13:08
1
answer

Check for completed session

I'm having trouble checking for something inside the session. The functions I am using are:    Function to check if someone is logged in if(usuarioestalogado()){?> <p class="alert-success">Você está logado como: <?= usuariologado()...
asked by 27.01.2015 / 18:21
1
answer

Passing a variable from javascript to session

I would like to know how do I submit a value that I have in javascript for an @session. in the case it would look something like this: I have a variable:    var id = $ (Person) .val (); This ID wanted to use in a session variable, but...
asked by 25.11.2016 / 04:42
2
answers

Validate captcha before sending form

I need a very simple captcha, but it can be validated before the form is sent, how can I do that? I currently use this: index.html <form method="post" action="valida.php" id="form" name="form"> <!-- campos --> <d...
asked by 15.08.2016 / 22:22
1
answer

Laravel Session - Public for Controller

I'm making a form that contains a Captcha . Captcha is generated by a PHP script that mounts an image. And I put the script in the public folder of Laravel 4 . When the Captcha code is generated it is placed in session: session_s...
asked by 26.08.2015 / 14:45