session-timeout

Expire the Zend session if the user remains idle for 10 minutes

江枫思渺然 提交于 2020-01-13 06:02:28
问题 I am new to zend and I want to ask how can I expire a user's session namespace's particular key if a user remains idle for 10 minutes. I have a namespace defined in zend session as $session = new Zend_Session_Namespace('loginNamespace'); now when the user logs in I set the key loggedIn = 1 in session namespace. Now I want to expire not the whole session if the user remains idle but only that key. how can I do that? 回答1: From the documentation, you can expire a key using: $session-

Increasing Session TimeOut

懵懂的女人 提交于 2020-01-12 13:50:13
问题 Site hosted via IIS 7.0 I would like to set my session time-out to 9 hours in my ASP.NET application. This has been set at web.config <sessionState timeout="540"></sessionState> But, as I understand, if the timeout is set as 20 minutes inside the IIS where the website is hosted, setting an extended session state will be of no use. Firstly, I would like to confirm whether this assumption is right. The problem is that I do not have access to the IIS of my shared hosted web server. Now, after

Increasing Session TimeOut

本秂侑毒 提交于 2020-01-12 13:48:50
问题 Site hosted via IIS 7.0 I would like to set my session time-out to 9 hours in my ASP.NET application. This has been set at web.config <sessionState timeout="540"></sessionState> But, as I understand, if the timeout is set as 20 minutes inside the IIS where the website is hosted, setting an extended session state will be of no use. Firstly, I would like to confirm whether this assumption is right. The problem is that I do not have access to the IIS of my shared hosted web server. Now, after

Strange Timeout in Sitecore 7

荒凉一梦 提交于 2020-01-12 07:59:26
问题 I've been using Sitecore version 7.1 for a few months now and have noticed that the Sitecore client logs me out after being idle for around 20 mins. Also other users have reported these issues whilst content editing. I'm using Windows 7, IIS 7, .NET framework 4.5. I've checked the error log for anything and can see no obvious errors and the keepalive service is running - I get this information in the logs: ManagedPoolThread #14 12:47:24 INFO Scheduling.UrlAgent started. Url:http://testsite

How to forcibly create a new session in Java Servlets

点点圈 提交于 2020-01-11 13:12:26
问题 I am storing session ids in database at log in time. The problem I am facing is that if a different user logs in after first one, same session is entered in DB and welcome username still reflects the name of the one who logged in first on the same machine. I want to create a new session id each time a user logs in, but somehow my code doesn't work. HttpSession session = request.getSession(); String sessionID; request.getSession(true); sessionID = session.getId(); Note: the above code is

How to forcibly create a new session in Java Servlets

百般思念 提交于 2020-01-11 13:12:02
问题 I am storing session ids in database at log in time. The problem I am facing is that if a different user logs in after first one, same session is entered in DB and welcome username still reflects the name of the one who logged in first on the same machine. I want to create a new session id each time a user logs in, but somehow my code doesn't work. HttpSession session = request.getSession(); String sessionID; request.getSession(true); sessionID = session.getId(); Note: the above code is

how to redirect user to default page on session time out in asp.net 3.5

爱⌒轻易说出口 提交于 2020-01-11 09:59:27
问题 i just want to redirect user to Home Page(Default.aspx) when session has been expired in asp.net 3.5. i just do it with web user control but steel it's not work perfectly. so i just want to do it with web.config. <authentication mode="Forms"> <forms loginUrl="~/SignIn.aspx" protection="All" timeout="2880" path="/" /> </authentication> Is this technique works in .net 3.5 framework application. 回答1: If you are using form authentication then you don't have to write any custom code. For session

Set Session Expiration Time Manually-CodeIgniter

浪子不回头ぞ 提交于 2020-01-10 17:21:09
问题 How can I set session expiration time dynamically in codeigniter? For example, if a user logs in and has the role of admin , the expiration time should be longer than if a user logs in who does not have an admin role. Thanks. 回答1: You can update your session expiration time by increasing this variable in config file: $config['sess_expiration'] = 'somevalue'. Set $config['sess_expiration'] = 0 , if you want it to never expire. Here's a good discussion on CI forums: Dynamically set

CakePHP Session Timeout on Inactivity only

佐手、 提交于 2020-01-09 06:20:14
问题 So the crux of this question is just how to prevent CakePHP from de-authenticating a session ONLY after a period of inactivity. So, if the user does nothing then I expect CakePHP to log them out after a period of 30 minutes. However, if the user chooses to visit a page on the 28th minute of inactivity, then CakePHP should 'reset' it's timeout counter. This currently isn't happening. Regardless of activity, CakePHP times out after the specified time in my core configuration (app/Config/core

Storm topology deployment timeout

折月煮酒 提交于 2020-01-06 04:59:05
问题 I'm trying to setup Apache Storm (1.0.2) on my Macbook Pro but apparently running into timeout issues if I try to deploy the topology. Also the UI hangs up spitting the same exception. 3491 [main] INFO o.a.s.StormSubmitter - Generated ZooKeeper secret payload for MD5-digest: -8915636774701640550:-6510752657961785886 3580 [main] INFO o.a.s.s.a.AuthUtils - Got AutoCreds [] Exception in thread "main" java.lang.RuntimeException: org.apache.storm.thrift.transport.TTransportException: java.net