Questions tagged as 'session'

1
answer

How to get the session number (which is supposed to be unique and unchanged)?

I have read that if a user opens a session a unique ip is created for their session, then I thought I could use the unique session identifier to simulate an ip. I want to know how to return the unique session number that is assigned to the perso...
asked by 16.12.2018 / 23:02
1
answer

Save names entered in input in the same variable

I am practicing the SESSION_START () in php. I have an input where to enter names, and I want all the names entered to be saved in the same variable to create a list with all the names entered. This is the code .. <form action="sesion.ph...
asked by 08.11.2018 / 17:02
2
answers

Session variables only work in the development environment (JSP)

I am developing a website with JavaServer Pages and I am facing the following problem: The page works correctly where I am developing (use NETBEANS for it). At the moment of giving " Run Project '" the page receives the session variables very...
asked by 11.07.2018 / 02:16
1
answer

How can I make it so that sesion.setAttribute ("Surnames", dbapellidos); take me two last names

I have a class in which I get two surnames from a database; dbapellidos=rs.getString("Apellidos"); but I want to pass it to a jsp page through session sesion.setAttribute("Apellidos", dbapellidos); and when I get it on the page, I only...
asked by 24.05.2018 / 10:41
1
answer

Error in homestead with SQL Server driver when saving laravel session (DB-Library (as ISQL) or ODBC version 3.7)

I am saving my Session in the database using laravel with SQL Server in homestead (Ubuntu) and at the moment of entering the system it shows me this error:    SQLSTATE [HY000]: General error: 4004 Unicode data in a Unicode-only   collation or...
asked by 20.03.2018 / 17:37
1
answer

How to compare different arrays of the $ _session

I'm trying to make a comparison after session_start(); What I was thinking and trying to do is: <?php session_start(); if($_SESSION['id_usuario']=NULL) { $_SESSION['id_nivel']=3; if($_SESSION['id_usuario']=...
asked by 02.02.2018 / 17:33
1
answer

sess_destroy () It does not work in codeigniter

Excellent night, I hope you can help me, when I send my function call to destroy the session, it is not destroyed and it is still active if I try to enter the URL. my controller is the following, to start and of course here is the function to...
asked by 07.12.2017 / 01:38
1
answer

Differences between timeout variables

I'm working with a web application that performs a Session.Timeout = 30 in code, and it is this part that confuses me, since in the web.config the following configurations are available: <authentication mode="Forms"> <...
asked by 04.12.2017 / 20:33
1
answer

Session Management does not validate

I have the following problem: configuration for the server: ini_set('zlib.output_compression', 1); ini_set('session.use_only_cookies', 1); ini_set('session.cookie_httponly', 1); I'm trying to validate if the sessions are active if(!iss...
asked by 25.10.2017 / 22:40
1
answer

Sessions in php for a certain user

Good day I'm working on WampServer php and mysql with sessions I have a problem having many users I want when I log in to show the data only of that user, my problem is how to assign an id so that when I start open with data only of that user. I...
asked by 05.11.2017 / 17:17