zoneminder/scripts
Isaac Connor 2b90bf15a6
Improve session (#2487)
* Introduce ZM_COOKIE_LIFETIME which sets the life of the SESSION cookie, instead of using what is in php.ini

* Use zm specific session functions, which are now located in includes/session.php.  Be more agressive about clearing session on logout.

* Move session code to includes/session.php

* remove duplicate line

* Move is_session_open to session.php.  Move code to clear a session into session.php

* improve debug line when there is a problem updating config entry

* split description into description and help text for COOKIE_LIFETIME

* Remove redirect on line.  We do it in javascript on postlogin view so that we can say logging in before switching to console

* If there is a username in the session, then we are logged in, but we need to load the user object from the db.  We can't just trust it from the session. The user may have been deleted and having that data in the session can be a security risk. So load the user object on every request.

* Use session_regenerate_id instead of our broken code to do the same

* Move auth code to includes/auth.php

* add autocomplete tags to username and password inputs

* Don't redirect to login if we are already viewing login.  Put auth before including skin includes

* need to include session.php in auth.php

* update to php namespace
2019-02-22 09:43:38 -05:00
..
ZoneMinder Improve session (#2487) 2019-02-22 09:43:38 -05:00
CMakeLists.txt allow one to set manpage destination 2018-12-07 09:47:00 -06:00
zm.in fix sftp xfers in zmfilter (#1677) 2016-11-07 16:08:43 -05:00
zmaudit.pl.in remove ZM_DIR_IMAGES (#2374) 2018-12-29 09:52:58 -05:00
zmcamtool.pl.in fix spacing, braces, quotes 2017-06-07 15:28:31 -04:00
zmcontrol.pl.in Merge https://github.com/michaelbarkdoll/ZoneMinder into trendnet 2018-08-13 11:05:50 -04:00
zmdbbackup.in remake this branch off master instead of off mysql2PDO. 2013-11-01 09:47:28 -04:00
zmdbrestore.in Migrate svn to git 2013-03-17 00:45:21 +01:00
zmdc.pl.in Logging and whitespace 2018-12-20 13:55:18 -05:00
zmeventdump.in remake this branch off master instead of off mysql2PDO. 2013-11-01 09:47:28 -04:00
zmfilter.pl.in Add a missing comma 2018-10-25 11:24:23 -04:00
zmlogrotate.conf.in Migrate svn to git 2013-03-17 00:45:21 +01:00
zmonvif-probe.pl.in move zmonvif-probe.pl from the onvif library code and update it to use ZoneMinder::ONVIF 2018-01-31 16:57:17 -05:00
zmpkg.pl.in remove quotes around state in command documentation. 2018-12-27 12:24:50 -05:00
zmstats.pl.in Move license down to perldocs at bottom. Remove unecessary line feeds and spaces 2018-10-28 17:50:22 -04:00
zmsystemctl.pl.in Merge branch 'master' into storageareas 2017-01-02 09:39:10 -05:00
zmtelemetry.pl.in retrieve greip data rather than the ip (#2173) 2018-07-31 14:01:01 -04:00
zmtrack.pl.in update gpl 2 mailing address in source files 2016-12-26 09:23:16 -06:00
zmtrigger.pl.in Logging and whitespace 2018-12-20 13:56:57 -05:00
zmupdate.pl.in Use the word skipped instead of aborted 2018-11-30 10:48:20 -05:00
zmvideo.pl.in fail if zm_path_ffmpeg not set 2018-07-17 06:57:38 -05:00
zmwatch.pl.in add db reconnects to zmwatch. 2018-09-07 16:29:23 -04:00
zmx10.pl.in switch quotes 2017-01-12 12:54:46 -05:00