Questions tagged as 'session'

1
answer

How to destroy a session in java?

To invalidate a session, my teacher passed the following code: HttpSession session = request.getSession(false); if (session!=null){ session.invalidate(); } But after logout, when I click Back in the browser, I can retrieve...
asked by 15.04.2016 / 00:12
1
answer

How do I track a web application's session in different browser tabs?

I'm developing a web application and using server session to control access to the application, this session should be terminated when the user logs out of the application, when closing all the tabs of the application or when it closes the brows...
asked by 15.12.2015 / 13:58
1
answer

How does session per request work?

There was an idea among developers to use the Session per request pattern - Session per request. Researching the subject, I found some topics in the OS that generally said that the indication was for ORM frameworks. Little practical exa...
asked by 02.02.2017 / 14:06
1
answer

Warning when trying session_start (); PHP [duplicate]

Does anyone know what this warning might be? Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at *caminho*) in *caminho* on line 2 Warning: session_start() [function.ses...
asked by 09.08.2014 / 00:27
2
answers

ASP.NET MVC Session

Personal I have a controller where I set two session keys and they capture these key anywhere in the application. (other controller , or a view ). The controller looks like this: [HttpGet] public ActionResult TimetableSelect(int curre...
asked by 24.05.2016 / 18:04
1
answer

Prevention Session Hijacking

I know that to prevent this type of attack we must use session_regenerate_id (), especially before logging in. My question is if I should delete the previous session by passing a true as parameter? I understand that it would be best to delete th...
asked by 24.09.2014 / 18:23
2
answers

Share the Same Session in Different Domains on the Same Server

Is it possible to share the same session between different domains on the same server? If at all possible, what can be done to achieve this?     
asked by 16.10.2015 / 07:51
1
answer

How to force login after running the application?

My scenario is as follows: After authentication with Active Directory, the logged-in user is saved in a Session [HttpPost] public ActionResult Login(LoginModel model, string returnUrl) { if (!this.ModelState.IsValid) return View...
asked by 21.10.2014 / 21:14
2
answers

PHP Logout with CodeIgniter

I'm having a problem logging out my system until it is logging out correctly and destroying the sessions, but if the user clicks the back button of the browser it returns to the previous page of the system where all data is displayed again . The...
asked by 03.02.2016 / 12:35
2
answers

Show session time remaining

I'm working with JSP and Servlet. I want to display on the jsp page the time remaining to expire the session I set in my web.xml: <session-config> <session-timeout>30</session-timeout> </session-config> Has anyon...
asked by 04.02.2015 / 20:38