session-timeout

Tomcat 7 : Redirect URL in case of session timeout

血红的双手。 提交于 2019-12-04 16:33:22
I have following configuration in web.xml in tomcat 7. I am wondering if I can add any configurable parameter here, so that if user tries to do any operation post 30 minutes, I redirect the user to our home page. <session-config> <session-timeout>30</session-timeout> <cookie-config> <domain>mydomain.mycompany.com</domain> <http-only>true</http-only> <secure>false</secure> </cookie-config> <tracking-mode>COOKIE</tracking-mode> </session-config> ohwhy This is probably not possible by configuration only. You will have to add a filter aswell. One way of doing that is described here: https:/

Destroy PHP Sessions on Browsers Tab Close

此生再无相见时 提交于 2019-12-04 15:57:58
问题 i am stucked, i am working on Projects hotbartendersla i have used a lot of sessions to process data in event booking, now i want to destroy the session when user closed the window/tab of browser,because when ever i open site the selection remains same as i did. i have used this <script type="text/javascript"> window.onbeforeunload = function() { $.post("mysessionsdestroypage.php",function(data){ }); } </script> but when i jumped to on step 2,step 3, my sessions are destroyed and data don't

Iframe keep-alive function - what is needed to reset the session timeout?

断了今生、忘了曾经 提交于 2019-12-04 14:21:51
问题 I have a hidden iframe that refreshes every now and then, in order to keep the ASP.NET session up and running, for as long as the user is online. However, I have been getting reports of users experiencing session timeouts, so now I am in doubt of what is needed to reset the session timer. The hidden iframe's content page (simple html page) refreshes itself at a certain interval, which is significantly less than the session timeout. My question is: Is it enough (for the session timer to reset)

session-timeout in JSF

泄露秘密 提交于 2019-12-04 14:10:50
I use the following codes to create a session object in JSF. The problem is that after sometime when I am trying to access userdet object it is giving me exception possibly because of session timeout. Is there anyway to increase the session timeout in JSF. FacesContext context = FacesContext.getCurrentInstance(); HttpSession session = (HttpSession) context.getExternalContext().getSession(true); session.setAttribute("userdet",user); When I use servlet I use the following codes but is it applicable to JSF also? <web-app ...> <session-config> <session-timeout>20</session-timeout> </session-config

How to handle report viewer session expired exception

ぐ巨炮叔叔 提交于 2019-12-04 11:41:06
I have the following situation: Microsoft Report Viewer 2010 is used to display reports (.rdlc files) in local mode in an ASP.NET web application. The report data is supplied by assigning a datasource in the code behind of an ASPX page. Here's an example: if(!IsPostBack){ ReportViewer1.Reset(); ReportDataSource reportDataSource = new ReportDataSource(); reportDataSource.Name = "DataContainerType"; reportDataSource.Value = DatasourceOnPage; reportDataSource.DataSourceId = "DatasourceOnPageID"; reportDataSource.DataMember = "DataSourceView"; ReportViewer1.ProcessingMode = ProcessingMode.Local;

View /page.jsf could not be restored [duplicate]

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 11:39:16
问题 This question already has answers here : javax.faces.application.ViewExpiredException: View could not be restored (10 answers) Closed 2 years ago . I have problem which I cannot solve. When I refresh opened JSF page after the page is idle for example 10 minutes I get this error message: serverError: class javax.faces.application.ViewExpiredException viewId:/page.jsf - View /page.jsf could not be restored. How I can increase the JSF View time? 回答1: You can set your session timeout parameter to

MVC session expiring but not authentication

会有一股神秘感。 提交于 2019-12-04 10:40:53
问题 I'm developing a C# MVC application and I can't seem to get the Authentication and Session timeouts to synchronize. I have a basic Forms Authentication setup and some limited session values. I set the Authentication timeout less than the session (28 minutes vs 30) but running against the development web server, the session will be wiped on a restart of the server but the authentication sticks around. I'm assuming that the authentication is being stored in a cookie that obviously survives the

Spring do not update session for ajax polling

北慕城南 提交于 2019-12-04 09:38:40
We are currently running into a problem with session time outs on one of our Spring web applications. The session never times out because we have a continuous ajax request polling the server. Is there a way to tell spring to ignore this request and not update the session so that time out works as expected? You could run a timer, equal to your session timeout, along side the continuous ajax request that would log the user out if the page never refreshes. Another idea would be to host the URL that you are hitting in a separate web application on the same domain. I'm not sure if Spring has

Different session time out for different users

荒凉一梦 提交于 2019-12-04 07:23:41
Is it possible to have different session time outs for different users? I need to have 180 mins session for admin and 20 min for non-admin users. Currently it is single session timeout for all the users. we are using a web.config key Any help would be appriciated. Learning Setting Session.Timeout property by code will set the timeout on a per user basis. You can manually set Session.Timeout = 20; or Session.Timeout = 180; based on the user type when they log in. This code should work for you: protected void SetSessionTime(string userType) { if (UserType == "admin") { Session.Timeout = 180; }

HttpSessionListener - Will sessionDestroyed method be called on session timeout? [duplicate]

喜欢而已 提交于 2019-12-04 05:15:37
This question already has answers here : Closed last year . How to call sessionDestroyed when a session times out (4 answers) I have an implementation of HttpSessionListener where 'locked' resources in the application are released with sessionDestroyed method. The 'lock' information is maintained in database, and the release of locks is working fine in most cases. But In some cases I still see resource is locked - even if there is no session active! So, I'm doubting if there is possibility that sessionDestroyed not being invoked? Suppose if the session is timed out - will sessionDestroyed