session-state

Why Session objects are not removed after Timeout period in Asp.Net?

我的梦境 提交于 2020-06-27 13:33:19
问题 Why Session objects are not removed after Timeout period? I am using Asp.Net 4.0 and Session state is configured as shown below. <sessionState mode="SQLServer" cookieless="false" timeout="5" allowCustomSqlDatabase="true" sqlConnectionString="data source=.\SqlExpress;initial catalog=App_SessionState;user id=sa;password=xxxxxxxx"/> If I have not activity in browser for about 10 mins, shouldn't the Session object be removed. But after 10 mins I can still access the Session variable. Am I missing

confirmDialog commandButton does not redirect/ does nothing if you wait for a longer period of time/ idle time session

流过昼夜 提交于 2020-04-17 20:08:01
问题 I have a JSF page where a popup would appear if he is idle for some period of time. 3 min 10 min etc If he is idle for some period of time a confirmDialog box would comeup with a message - "Your session has expired." and a command button id="quitConfirm" OK Upon clicking the button ID it redirects to the home page or what ever path that you mentioned To test this I deployed this in my local weblogic server and after a wait time of 4 min or so clicked on the commandButton OK it redirected as

confirmDialog commandButton does not redirect/ does nothing if you wait for a longer period of time/ idle time session

梦想的初衷 提交于 2020-04-17 20:06:13
问题 I have a JSF page where a popup would appear if he is idle for some period of time. 3 min 10 min etc If he is idle for some period of time a confirmDialog box would comeup with a message - "Your session has expired." and a command button id="quitConfirm" OK Upon clicking the button ID it redirects to the home page or what ever path that you mentioned To test this I deployed this in my local weblogic server and after a wait time of 4 min or so clicked on the commandButton OK it redirected as

confirmDialog commandButton does not redirect/ does nothing if you wait for a longer period of time/ idle time session

一个人想着一个人 提交于 2020-04-17 20:06:11
问题 I have a JSF page where a popup would appear if he is idle for some period of time. 3 min 10 min etc If he is idle for some period of time a confirmDialog box would comeup with a message - "Your session has expired." and a command button id="quitConfirm" OK Upon clicking the button ID it redirects to the home page or what ever path that you mentioned To test this I deployed this in my local weblogic server and after a wait time of 4 min or so clicked on the commandButton OK it redirected as

Iframe occasionally loses session cookies

删除回忆录丶 提交于 2020-02-25 06:22:04
问题 Occasionally on submitting a payment form in an iframe, the postback from the payment gateway results in the user being logged out as the request is missing the ASP.NET_SessionId cookie (we are using state-server). It's not the app pool recycling causing the issue as I have checked those logs. It also only happens in the production environment. I can see the session cookie exists just before the form is submitted so I can't figure out where it is losing it. 回答1: You need to check if you are

PHP session_destroy and session scope?

余生颓废 提交于 2020-01-30 05:53:05
问题 OK there are many "simple session" questions out there, but I can't seem to find what I'm after. It bugs me a little bit as the PHP document does not seem to explain this well. Three fold questions. It says that session_destroy() wipes out the session data but not the global variable. So it wipes the data but the variables are still in tact? What does the documentation mean by global variables? What are the different types of ways that I can use to destroy session data, isn't session_destroy

End Session on MVC

元气小坏坏 提交于 2020-01-25 08:54:05
问题 I have this question you probably know the answer... My app is already functional and working fine. Whenever a user authenticates the app updates its model with the LastLoginDate, and when the user logs out the app updates its model with the LastLogOutDate. This works fine while the user keeps clicking on the logout link. However, if the user closes the windows the LastLogOut value never gets updated, and what happens is that Administrator sees users online that are not. The same thing

Session State being cleared or lost after one AJAX call to .NET CORE 2.1 application hosted on IIS server

ε祈祈猫儿з 提交于 2020-01-25 06:51:08
问题 I have run into this problem for which I have been scratching my head for hours now. The problem: The Session State that I create on Login gets mysteriously cleared or lost after calling an API controller which is also in .NET CORE 2.1. This happens when I call a API method that looks like: [Authorize(Policy = "AdminViewPolicy")] [HttpGet("GetAllUsersId")] public IActionResult GetAllUsersId() { var user = _userService.GetAllUsersId(); return Ok(new { data = user }); } The roles and other

.NET Web API + Session Timeout

冷暖自知 提交于 2020-01-24 12:59:30
问题 I am creating a web service with web api controller. I want to be able to create a session and check the status of the session. I have the following: Controller: public string Get(string user, string pass) { bool loginValue = false; loginValue = UserNamepassword(user, pass); if (loginValue == true) { HttpContext.Current.Session.Add("Username", user); //session["Username"] = user; //session.Add("Username", user); if ((string)HttpContext.Current.Session["Username"] != null) { HttpContext

How to prevent multiple logins from same user?

我是研究僧i 提交于 2020-01-24 00:57:31
问题 How can I prevent a logged-In member from logging into their account (in a new tab or different device) without logging out of their existing session ? I am working on a client job-board website where logged-in employers can submit a single Job Vacancy via the post_job.php page. The problem is they can Login again from a new tab or device without logging out and post more than their permitted single job posting. What would be the easiest way of preventing employers from doing this ? I am a