Comments (10)
Placed a fix for this here:
#278
What is happening was the repeating background_services ajax call was killing the session via timeout in auth.inc, but since the javascript in auth.inc never made it to the browser, the auto-logout was not done. To fix this, set it so these repeating calls can not cause the logout to happen.
This may not be an ideal solution.
from openemr.
Perhaps skipping it whenever an ajax call is done would be more ideal?
http://stackoverflow.com/questions/19794859/detect-ajax-in-php
from openemr.
I have used a GET parameter "running_as_ajax=1" in the fee sheet logic to detect that case. No idea how fragile or browser-dependent this other method would be. Anyway if your commit works I'm happy.
from openemr.
Note it does not do an auto logout, however (if try to do something after the timeout, it will logout). I think to get the auto logout really working will require a simple hidden iframe based on interface/main/daemon_frame.php script (interface/main/tabs/daemon_frame_tabs.php) that simply just keeps refreshing every 60 seconds or so. Thus on a timeout, it will then do a auto-logout without any user input.
from openemr.
If got above working, then would likely migrate the background services check and the future messages check to that script.
from openemr.
That makes sense to me. I guess an ajax success handler could do that too? I would look at how the browser reacts in each case... i.e. it's best if the browser does not show a "busy indicator" when these events happen.
from openemr.
Just committed the above fix to fix the site id is missing bug when the user tries to do something after a timeout; it will now instead logout.
Will now work on the fix to support auto-logout without any user insteraction.
from openemr.
Placed a PR for this:
#285
It is working, but notably the browser does show a very brief "busy indicator" when this script is reloaded. Not sure how to avoid this while also ensuring the auth.inc javascript is rendered correctly.
from openemr.
Awesome, thanks!
from openemr.
Committed above PR.
from openemr.
Related Issues (20)
- PHP version needs to be at least 8.1.0 HOT 1
- feat: Allow module writers to add commands to the bin/console command runner HOT 2
- bug: LBF query error HOT 1
- Change Module Manager HOT 4
- feat: Add formatting capability to speech dictation form
- Billing manager will not pull encounters by insurance company HOT 2
- Event for C-CDA generration
- When google single sign on is enabled it still requires user to use password from openEMR to sign the encounter doesn't use single sign on.
- Missing Pdf and Track Anything style sheets
- bug: balance formatting in front payment
- bug: broken validation of claim with replaced insurance
- Insert slashes for the user when typing dates
- fix reminder_results_integrate() to work when same actions are used in different rules
- bug: In Visit History, print, or save as PDF, a multi-page list of encounters doesn't print or save all results. HOT 1
- Visit History's "Results per page" applies only to encounters, not documents HOT 4
- SNOMED lookup is slow in some places HOT 8
- POST /api/facility should not require parameter facility_npi HOT 2
- feat: Allow section copy & global copy from another encounter for the same
- bug: php fatal math error when saving empty statement count editing invoice
- bug: fatal implode error registering app when contacts is empty
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openemr.