session-timeout

Silverlight, RIA & ASP.Net Session Timeouts

邮差的信 提交于 2019-12-05 09:19:20
We have a requirement where we would like to redirect the user to a login page when ASP.NET Session expires and the user is working in a Silverlight plugin. So, scenario is, we have a legacy application which runs ASP.Net, all our new modules are in Silverlight, and the legacy app loads the Silverlight application. That all works :-) The user then walks away from their desk and comes back after the ASP.Net Session times out, but then tries to carry on doing something in the Silverlight App, which uses a RIA Domain Service. Because the session has time out, the RIA Domain Service fails, but it

Set Liferay Hook on session timeout

匆匆过客 提交于 2019-12-05 08:08:16
问题 I want to write a Hook in Java that is executed if the session of my Liferay 5.2.3 Portal times out. I managed to write a Hook that is executed whenever the user clicks the logout link with the following setup in the liferay-hook.xml : <hook> <event> <event-class>com.extensions.hooks.LogoutHook</event-class> <event-type>logout.events.pre</event-type> </event> </hook> However the Logout Hook does not get called if the session times out, but I need to execute the same method on a timeout. I did

php session destroyed in android application

故事扮演 提交于 2019-12-05 07:16:11
问题 I am building a login application in android in which i am hitting a url(with username and password) upto that part it works fine but after that whenever I am hitting a url(once the user is authenticated) , it return nothing(i.e. a error message like please login first). However it works fine in very similar iphone app and on browser. I could not understand that what is the actual problem. Is there any problem on server side(i.e. in php coding ) or there is something wrong with android app.

Setting Vaadin session-timeout parameter

别等时光非礼了梦想. 提交于 2019-12-05 06:02:29
I am using Vaadin 7.1.7 and I can't figure out how to set session-timeout parameter (to, say, 1min). As far as I can tell, Vaadin 7.x.x does not produce web.xml , it uses @VaadinServletConfiguration annotation but there doesn't seem to be a session-timeout parameter. Krayo As far as I know there are 2 ways to set session-timeout in Vaadin 7. In the web.xml: <session-config> <session-timeout>1</session-timeout> <!-- 1 minute --> </session-config> <servlet> <servlet-name>MyServlet</servlet-name> <servlet-class>com.xyz.web.MyServlet</servlet-class> <init-param> <description>My Main Page<

How do I stop ASP.net forms authentication / session from renewing in setInterval ajax web service call?

眉间皱痕 提交于 2019-12-05 02:47:03
I have a control that i've written that has a javascript component and a web service component. The problem i'm having is that the javascript is set to do: setInterval(this._checkAlertsHandler, this._messageCheckInterval * 1000); This calls a function which makes a webservice call like so: Alert.SiteAlertService.GetAlerts(this._receivedAlertsHandler, this._errorReceivedAlertsHandler); So this is using the web service javascript proxy methods to access the web service. The issue is that our application has forms authentication and a timeout value, so if the user is idle for too long it will log

How to properly message a session timeout in JSP?

£可爱£侵袭症+ 提交于 2019-12-04 20:11:25
Using the default <session-timeout> setting for JSP, I want to show an "Your session expired (30 min)" message after the session expire and bring the user back to the login page. To use ((HttpServletRequest) request).getSession(false) == null to detect it isn't doing the job properly, because the session will be null already at the first time the user enters the application, making the message pop right on. How can I avoid this? Is there a way to customize JSP's HttpSession so I could know when the real event happened? How about setting a cookie indicating last login? If the cookie is valid

How to store Sessionstate in Database for a hosted .NET MVC website

匆匆过客 提交于 2019-12-04 18:45:59
I am having an issue with the user session timeout on a hosted MVC 4 website. When I run the site locally with IIS-Express, I have a very long timeout period. Once the site gets published to the host (GoDaddy), the timeout period for logins drops to something absurdly short (~10-15 minutes). I am using forms authentication. On login I use the standard: FormsAuthentication.SetAuthCookie(model.UserName, model.RememberMe); Then in my controllers I am using the Authorize attribute: [Authorize] public class BillingAccountController : Controller { ... } I have tried several solutions that involve

JSF “Remember me” option

柔情痞子 提交于 2019-12-04 18:08:53
In other languages when a user logs in you can set the expire date of a cookie really far from today's and you can achieve this. How can I implement this in JSF2? I have a jsf sessionscoped bean but how can I maintain this session for a long time?. You can add cookies with JSF as well: FacesContext.getCurrentInstance().getExternalContext.addResponseCookie(..) in the parameters map you can set the expiration date - see the documentation for all parameteres I know this is tagged JSF but I recommend you look into Spring's Solution to the Remember Me problem. 来源: https://stackoverflow.com

Any way to anticipate session timeout?

佐手、 提交于 2019-12-04 16:56:59
Is there a way to "catch" the session timeout event, so as to retrieve data from HttpSession before its invalidated ? We're implementing the Filter Interface, and in the doFilter method, the user we stored in the session object at login is null when session times out. Thanks in advance. You should be able to register an HttpSessionListener for your webapp that will allow you to get notified when a Session is destroyed. It has two callback methods: public void sessionCreated(HttpSessionEvent se) public void sessionDestroyed(HttpSessionEvent se) The HttpSessionEvent class has a getSession method

Session Timeout(session.setMaxInactiveInterval) is not working in Google Appengine

会有一股神秘感。 提交于 2019-12-04 16:46:19
I tried to set the Session timeout for particular users using session.setMaxInactiveInterval(30*60) 30 minutes . But by default it's assigned to 86400 seconds (24 hrs). Also tried in Web.xml <session-config> <session-timeout>30</session-timeout> // Session timeout assigned for all the users </session-config> It looks HttpSession.setMaxInactiveInterval() is not honoured by the AppEngine platform anymore (it worked in the past). You can however still specify session timeout in the web.xml : <session-config> <session-timeout>30</session-timeout> <!-- 30 min --> </session-config> 来源: https:/