Questions tagged as 'session'

1
answer

Search within a session

I have a function in controller that returns me a JSON , which I get in a JQuery and I mount my page. I, store her return in a session, as below: SessaoUtil.SalvarSession("PegaHotelPacote", package.Buscar((SessaoUtil.Recup...
asked by 28.03.2014 / 16:18
1
answer

Javascript: Master tab

I need a certain function in a project, I need some functions to only execute in a tab of my site, for example ... The user is in the HOME tab but the SOBRE , CONTATO tabs are open and on that site plays audio depending on wh...
asked by 10.06.2014 / 02:52
1
answer

Session is closed! Spring + JPA (HIbernate)

I'm trying to make an example of JPA + Spring . But I'm having trouble managing transactions. persistence.xml: <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0" xmlns="http://java.sun.com/xml/n...
asked by 21.02.2014 / 18:53
1
answer

TimeOut Session using StateServer

I have an application in cluster that I use the Session , to not give problem I put another machine to serve as Session Server and set web.config as follows: <sessionState mode="StateServer" stateConnectionString=...
asked by 14.02.2014 / 17:27
1
answer

How do I redirect the login page to the control panel when I am logged in?

With this code I redirect from the control panel to the login page visitors who are not logged in. <?php session_start(); if (!isset($_SESSION['username'])){ header("location: login.php"); } ?> How can I apply the same process to the...
asked by 24.05.2014 / 17:48
0
answers

Display array elements without the key

Hello, I have a small "problem". I'm trying to iterate an array session through a foreach, but it always returns only one result. So I used a var_dump () and the result was this: array (size=1) 0 => array (size=3) 0 => strin...
asked by 06.12.2018 / 13:37
1
answer

Not getting the session user level

I am separating the menu according to the user level, but I can not get the level of the session. Regardless of the user level it only shows the adm menu that is level 2 Where is the error? Another thing how can I put more levels? type...
asked by 06.05.2018 / 16:52
0
answers

Session with absolute path

The script below only works if I do not put the absolute path, only the relative path. Can you make it work with absolute path? Absolute: xmlhttp.open("GET", "http://servidor.com.br/codec/azul/getcarteira_virutal.php?"+id , true); Rela...
asked by 13.06.2018 / 21:02
0
answers

Session in Node.JS

I was reading that middleware Express Session is not ideal for working in production, for which archives the sessions in memory. I've also read that storing session data in memory is not a good practice. So, my question is: what is the be...
asked by 25.03.2018 / 17:32
1
answer

(ASP.NET MVC) Create Session variable

I have an ASP.NET MVC application that is published on two IIS servers (approval and production); In this application, I use the Session variable to save the user's login to a part of it, however, on the production server the creation of the...
asked by 23.01.2018 / 13:34