Questions tagged as 'session'

1
answer

What is the storage difference between session, cookies and localstorage? [duplicate]

Where is the storage location for each of them? the local storage I heard that it is html5 and is better than session and cookie , what is the difference between them?     
asked by 29.09.2018 / 20:09
1
answer

return from array_search () considered false condition

In my code, on the login screen, I search the BD for the number of blogs belonging to the same user, and put the ID of those blogs in an array, then assign it to a session variable (I want my code to allow the user later of logged in to access t...
asked by 06.04.2018 / 05:48
2
answers

Session without the www and with the www php [closed]

Hello, I'm having a problem, it happens that the user logs on to www.mysite.com his session does not stay in mysite.com, why does it have this difference of www and www? Can anyone help me? I'm setting the session normally session_st...
asked by 03.01.2017 / 13:04
1
answer

Mapping active users and disconnecting if they exceed 3 concurrent users in java

I would like to know how I could map the users that connect based on their unique id's and id session so that when there are more than 3 sessions for this id, the users who connected first are removed from the HashMap and so on. Example: Us...
asked by 06.01.2017 / 17:00
2
answers

Get userid by SESSION

I have a question, how do I get the id of the guy who logged in on my system? So that later he can change his data. <?php if (isset ($_POST ["loginUsuario_externo"])){ include_once("../controllers/Usuario_Externo_Controller.php"...
asked by 29.10.2015 / 14:21
1
answer

Login with Cookie or Session in PHP5 [duplicate]

I'm implementing an administrative area on my site and have always used $_SESSION to log in. However, now I need the user login to be saved if it leaves the page.    My question: Do I need to use $_COOKIE to save $_SESSION...
asked by 29.10.2015 / 15:20
1
answer

Model in sessions

I have a GRID (table) that when selecting an item through the ID I load the entity in a session via ajax. public static class Sessoes { public static Produto Produto { get { return (P...
asked by 20.08.2014 / 15:32
1
answer

ASP does not save session data

I have a page that logs in to the client. This page goes up to the session id and client name like this: session("user_id") = rec_user("chave") session("user_name") = rec_user("nome) I have another page that uses this information to verif...
asked by 01.05.2014 / 14:05
1
answer

Best way to filter (validate) data retrieved from a $ _SESSION

I am creating a registry and I have a session $_SESSION['usuario']['cpf'] ; I'm validating the data I get for POST and GET with the filter_input function of PHP. However, the documentation says: INPUT_SESSION (not implemented yet) . I...
asked by 14.09.2017 / 16:27
1
answer

Using Session in an MVC controller returns error

I'm trying to use a session in an MVC application, I believe you're right but you're returning the error:    Object reference not set to an instance of an object When it tries to pass the value in the session and the value is not null....
asked by 31.03.2017 / 19:07