session

Laravel Auth session timeout

六月ゝ 毕业季﹏ 提交于 2020-07-07 11:41:09
问题 I have seen several questions in this area and so far all replies seem to focus on detecting expiration on the next User action. Regardless of being able to do this, what I want is to have the server side code detect the expiration and then force a refresh of the User screen. Conceptually, the process is something like this: Expiration detected on the server side Optionally, a message is sent to the User asking if they wish to continue. If no response, force the logoff process and advise the

express-session secure: true

我的梦境 提交于 2020-07-06 13:45:56
问题 app.use(session({ secret: "testing credentials", store: sessionStore, resave: true, saveUninitialized: true, cookie : { httpOnly: true, //secure: true, maxAge : 60 * 60 * 1000 } })); I'm working on some security problems on my newly developed website. And after done some research online, if secure=true is set, then it will be more secure. However, If set secure: true, then information inside session will lose every time when the user send another request. Is there a way to solve this problem?

express-session secure: true

三世轮回 提交于 2020-07-06 13:44:26
问题 app.use(session({ secret: "testing credentials", store: sessionStore, resave: true, saveUninitialized: true, cookie : { httpOnly: true, //secure: true, maxAge : 60 * 60 * 1000 } })); I'm working on some security problems on my newly developed website. And after done some research online, if secure=true is set, then it will be more secure. However, If set secure: true, then information inside session will lose every time when the user send another request. Is there a way to solve this problem?

Grails session variable null

蓝咒 提交于 2020-06-29 10:16:32
问题 My app has an expensive service method, results of which must be 1) checked for errors and 2) presented to a Java applet via a URL (i.e. as opposed to a JavaScript variable). The method result is a string, and the applet is only capable of loading data from a file or URL. I tried to deal with the problem using a session variable: def action1 = { def input = params['input'] def result = expensiveServiceMethod( input ) def failed = result == null session['result'] = result render( view:'view1',

Standard for storing session key

我与影子孤独终老i 提交于 2020-06-29 03:52:55
问题 After doing a bit of research on this topic, it seems like session keys have typically been stored as cookies which is nice because they get automatically added to requests. I've been seeing that developers prefer localstorage to cookies due to less restrictions, though. I am building a React frontend, so persisting a reducer in localstorage and managing the session key in that reducer would be very easy. I would need to append this to requests, which seems to be the only downside. Wondering

Standard for storing session key

只愿长相守 提交于 2020-06-29 03:51:33
问题 After doing a bit of research on this topic, it seems like session keys have typically been stored as cookies which is nice because they get automatically added to requests. I've been seeing that developers prefer localstorage to cookies due to less restrictions, though. I am building a React frontend, so persisting a reducer in localstorage and managing the session key in that reducer would be very easy. I would need to append this to requests, which seems to be the only downside. Wondering

This PDO login form also logs me when I enter a wrong password. How to fix that?

旧时模样 提交于 2020-06-28 04:45:44
问题 I am am trying to improve my login system for my students. I don't really understand this stuff. I am using this from here: It works on my laptop, but ... I registered a user: mymail@somewhere.com, PW: Monday0518 I registered, logged in, no problem. Then I deliberately entered a wrong PW. I still got in! I did not save the PW. How can I alter this to take me back to the login page when the PW is wrong?? <?php //start PHP session session_start(); //check if login form is submitted if(isset($

Same Flask login session across two applications

狂风中的少年 提交于 2020-06-28 04:11:20
问题 Two separate Flask applications, running on two different subdomains, however the login sessions are not persisting between the subdomains. For example; logging into a.example.co.uk will result in the user being logged in. However, visiting b.example.co.uk - the user will not be logged in. Running Apache, Flask (with Flask-Login), Ubuntu 18, Python 3. App secret is the same on both applications. Tried playing with SERVER_NAME configuration setting. Cookies are correctly being set to .example

Codeigniter 3 stop multiple logins using ci_sessions database

最后都变了- 提交于 2020-06-28 03:57:03
问题 I am working with this app made in codeigniter 3 and I'm trying to stop concurrent logins from occurring. Since by default CI doesn't have something like this I've decided to try and write a few functions to achieve this. I have done too much but this is my overall plan and would like opinions and thoughts on my approach. What I think i should do is create a user_id column in my ci_session table then when a user logs in use that user_id to check all the user_id in the sessions table and then

Alter session state when EnableSessionState is ReadOnly

人盡茶涼 提交于 2020-06-28 03:11:19
问题 I have a (legacy) ASP .NET WebForms project, and I want to set EnableSessionState to ReadOnly wherever possible to prevent the session lock from blocking concurrent page loads by a single user. On some pages, I actually do want to write to the session state. Normally, you would just set EnableSessionState back to True for only those pages where you need to write to the session. The problem is that the Page_Load event only needs to read from the session state, and the only code on the page