-
|
Working in an app I didn't write and it has an auto logout feature in JS script that warns of pending logout after 20 minutes, with a 5 minute countdown timer. But I commented that out for development so it would be causing the issue I'm about to describe. The app sends me to the login page after what seems to be 5-10 min. It might be 20 (time flies when you're having fun coding) but I wanted to make it longer. So I added |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
|
I believe you can't set the session variable timeout larger then set in the administrator settings. So it probably does exactly that, logging you out after 20 minutes. |
Beta Was this translation helpful? Give feedback.
-
|
This app doesn't use cookies, so none are set by either app. At least as far as I can tell from the list of cookies associated with 127.0.0.1. Those that are listed are set by the browser and do not change when logged in to either app. I also checked the app name being used in the /config/app.cfm files of either and they each differ in name. The only think shared between the two apps is the data source settings. But i wouldn't think that has any impact on this behavior. So I'm still at a loss why this behavior is happening. |
Beta Was this translation helpful? Give feedback.
-
|
A quick test might be to open the two apps in different browsers. i.e. FireFox for one and Chrome for the other. As @neokoenig mentioned this sounds like the way sessions are controlled at the CFML engine level. Commandbox will use the app name in the server.json file. So looking at Using the two different browser will make sure the two are not conflicting from the browser level, looking at the commandbox server list, will point out if the two are conflicting on the server level. |
Beta Was this translation helpful? Give feedback.
-
|
Sometimes, if you have a "session cookie" don't know the term for it, but basically a cookie that doesn't have an expiration date. Then it isn't written and only kept in the browser's memory. That may be another thing confounding your issue. Glad to hear that using two different browsers helped at least. |
Beta Was this translation helpful? Give feedback.
I suspect a cookie must being set somewhere (or at least some token must be being sent which the browser stores).... but either way: A shared datasource can absolutely make a difference IF you've told the CF/lucee to use database based sessions (vs being in memory).... it'll be reading off the same table, so will get confused as hell probably.