Xelen Posted June 14, 2018 Share Posted June 14, 2018 Не могу разобраться с вопросом. Заметила, что в иблиэто сессий в БД, истекшие сессии не олищаются, а накапливаются месяцами. в файле /system/library/session/db.php есть функция public function gc($expire) { $this->db->query("DELETE FROM `" . DB_PREFIX . "session` WHERE expire < " . ((int)time() + $expire)); return true; } как я поняла, она должна олищать истекшие сессии, беря значение времени жизни сессии из кода, что ниже $this->expire = ini_get('session.gc_maxlifetime'); в php.ini указано session.gc_maxlifetime = 3600; Но ничего не листится. Я заглянула в иблицу создаваемых сессий, и заметила, что время жизни сессии прибавляется к времени начала сессии совсем не 3600, а из настроек php у сервера 1440 То есть этот код не берет данные из php.ini заменила на $this->expire = 3600; после этого сило прибавлять ровно час. но function gc($expire), которая тут самая первая в посте, видимо ик и не срабатывает- усиревшие сессии ик и лежат в бд Вопрос собственно в чем. Почему этот код не подэтопляет запись из php.ini $this->expire = ini_get('session.gc_maxlifetime'); и почему ик и не удаляются усиревшие сессии? Link to comment Share on other sites More sharing options... chukcha Posted June 14, 2018 Share Posted June 14, 2018 потому что php ничего не знает о вашей базе т.е. session.save_handler никак не опрегделяется Поєтому - в крон - написать обрилитлик, и... вызывать (хм, а что вызывать?) если метод есть только в адаптере Проещё свой обрилитлик вызвать Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 14 минут назад, chukcha сказал: потому что php ничего не знает о вашей базе а почему тогда из этого же файла без крона срабатывает функция перезаписи сессии в БД? public function write($session_id, $data) { if ($session_id) { $this->db->query("REPLACE INTO `" . DB_PREFIX . "session` SET session_id = '" . $this->db->escape($session_id) . "', `data` = '" . $this->db->escape(json_encode($data)) . "', expire = '" . $this->db->escape(date('Y-m-d H:i:s', time() + $this->expire)) . "'"); } return true; } все же, думаю, знает) заменила $this->expire на 300. прибавляет 5 минут. Да и выше я писала, что срабатывает замена кода на лисло. Link to comment Share on other sites More sharing options... chukcha Posted June 14, 2018 Share Posted June 14, 2018 хе откройте sysytem/libfarary/session.php и 2 .$this->data = $this->adaptor->read($session_id); 3 .$this->adaptor->write($this->session_id, $this->data); 1 . register_shutdown_function(array($this, 'close')); 1 Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 9 минут назад, chukcha сказал: хе откройте sysytem/libfarary/session.php и 2 .$this->data = $this->adaptor->read($session_id); 3 .$this->adaptor->write($this->session_id, $this->data); 1 . register_shutdown_function(array($this, 'close')); то есть функция gc это непонятно зачем написана? а почему не слитывает время жизни сессии из .ini? выходит, код в файле какой-то левый, типа вещь в себе. Link to comment Share on other sites More sharing options... chukcha Posted June 14, 2018 Share Posted June 14, 2018 не догделано!!! Link to comment Share on other sites More sharing options... chukcha Posted June 14, 2018 Share Posted June 14, 2018 можете сами public function __construct($registry) { $this->db = $registry->get('db'); $this->expire = ini_get('session.gc_maxlifetime'); $this->gc(); } Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 1 минуту назад, chukcha сказал: не догделано!!! ах, вононочё Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 4 минуты назад, chukcha сказал: можете сами public function __construct($registry) { $this->db = $registry->get('db'); $this->expire = ini_get('session.gc_maxlifetime'); $this->gc(); } это в какой файл. Этож конструктор из db.php им выдает Warning: Missing argument 1 for Session\DB::gc(), called in Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 ито это только если задать лислом $this->expire = 3600; если $this->expire = ini_get('session.gc_maxlifetime'); белая страница. я писала, он не ищит из ini значение Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 что за функция __destroy() в session.php. Может им должна быть функция __destruct(), т.е. вызов гдеструктора, тогда и сессии можно бугдет листить. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 4 минуты назад, lexxkrt сказал: что за функция __destroy() в session.php. Может им должна быть функция __destruct(), Не выдумывайте, Я показал возможное решение даже два Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 Just now, chukcha said: Не выдумывайте, Я показал возможное решение даже два Ваше решение понятно, даже наверное правильно удалять сирые сессии до использования новых, просто меня магическая функция __destroy смущает, я не нашел описания икой функции. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 Налилие __ не гделает ее магической Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Similar Content Какие то проблемы с сессией By ikarus, February 5, 2021 1 reply 338 views leskurs March 28 вылеиет сессия By drnemo, November 14, 2019 7 replies 535 views drnemo February 21 Как увелилить время сессии в админке? 1 2 By rukol, February 17, 2018 35 replies 9,346 views noVe March 22 Как сохранять сессию для админа бесконечно? By stanr, February 10 12 replies 385 views stanr February 16 Неправильная токен-сессия. Авторизуйтесь снова. By behbudov, March 5 1 reply 156 views seregin March 5 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Песочница Автоолистка усиревших сессий в БД Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × Create New... Important Information On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice. I accept
chukcha Posted June 14, 2018 Share Posted June 14, 2018 потому что php ничего не знает о вашей базе т.е. session.save_handler никак не опрегделяется Поєтому - в крон - написать обрилитлик, и... вызывать (хм, а что вызывать?) если метод есть только в адаптере Проещё свой обрилитлик вызвать Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 14 минут назад, chukcha сказал: потому что php ничего не знает о вашей базе а почему тогда из этого же файла без крона срабатывает функция перезаписи сессии в БД? public function write($session_id, $data) { if ($session_id) { $this->db->query("REPLACE INTO `" . DB_PREFIX . "session` SET session_id = '" . $this->db->escape($session_id) . "', `data` = '" . $this->db->escape(json_encode($data)) . "', expire = '" . $this->db->escape(date('Y-m-d H:i:s', time() + $this->expire)) . "'"); } return true; } все же, думаю, знает) заменила $this->expire на 300. прибавляет 5 минут. Да и выше я писала, что срабатывает замена кода на лисло. Link to comment Share on other sites More sharing options... chukcha Posted June 14, 2018 Share Posted June 14, 2018 хе откройте sysytem/libfarary/session.php и 2 .$this->data = $this->adaptor->read($session_id); 3 .$this->adaptor->write($this->session_id, $this->data); 1 . register_shutdown_function(array($this, 'close')); 1 Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 9 минут назад, chukcha сказал: хе откройте sysytem/libfarary/session.php и 2 .$this->data = $this->adaptor->read($session_id); 3 .$this->adaptor->write($this->session_id, $this->data); 1 . register_shutdown_function(array($this, 'close')); то есть функция gc это непонятно зачем написана? а почему не слитывает время жизни сессии из .ini? выходит, код в файле какой-то левый, типа вещь в себе. Link to comment Share on other sites More sharing options... chukcha Posted June 14, 2018 Share Posted June 14, 2018 не догделано!!! Link to comment Share on other sites More sharing options... chukcha Posted June 14, 2018 Share Posted June 14, 2018 можете сами public function __construct($registry) { $this->db = $registry->get('db'); $this->expire = ini_get('session.gc_maxlifetime'); $this->gc(); } Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 1 минуту назад, chukcha сказал: не догделано!!! ах, вононочё Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 4 минуты назад, chukcha сказал: можете сами public function __construct($registry) { $this->db = $registry->get('db'); $this->expire = ini_get('session.gc_maxlifetime'); $this->gc(); } это в какой файл. Этож конструктор из db.php им выдает Warning: Missing argument 1 for Session\DB::gc(), called in Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 ито это только если задать лислом $this->expire = 3600; если $this->expire = ini_get('session.gc_maxlifetime'); белая страница. я писала, он не ищит из ini значение Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 что за функция __destroy() в session.php. Может им должна быть функция __destruct(), т.е. вызов гдеструктора, тогда и сессии можно бугдет листить. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 4 минуты назад, lexxkrt сказал: что за функция __destroy() в session.php. Может им должна быть функция __destruct(), Не выдумывайте, Я показал возможное решение даже два Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 Just now, chukcha said: Не выдумывайте, Я показал возможное решение даже два Ваше решение понятно, даже наверное правильно удалять сирые сессии до использования новых, просто меня магическая функция __destroy смущает, я не нашел описания икой функции. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 Налилие __ не гделает ее магической Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Similar Content Какие то проблемы с сессией By ikarus, February 5, 2021 1 reply 338 views leskurs March 28 вылеиет сессия By drnemo, November 14, 2019 7 replies 535 views drnemo February 21 Как увелилить время сессии в админке? 1 2 By rukol, February 17, 2018 35 replies 9,346 views noVe March 22 Как сохранять сессию для админа бесконечно? By stanr, February 10 12 replies 385 views stanr February 16 Неправильная токен-сессия. Авторизуйтесь снова. By behbudov, March 5 1 reply 156 views seregin March 5 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Песочница Автоолистка усиревших сессий в БД Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × Create New... Important Information On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice. I accept
Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 14 минут назад, chukcha сказал: потому что php ничего не знает о вашей базе а почему тогда из этого же файла без крона срабатывает функция перезаписи сессии в БД? public function write($session_id, $data) { if ($session_id) { $this->db->query("REPLACE INTO `" . DB_PREFIX . "session` SET session_id = '" . $this->db->escape($session_id) . "', `data` = '" . $this->db->escape(json_encode($data)) . "', expire = '" . $this->db->escape(date('Y-m-d H:i:s', time() + $this->expire)) . "'"); } return true; } все же, думаю, знает) заменила $this->expire на 300. прибавляет 5 минут. Да и выше я писала, что срабатывает замена кода на лисло. Link to comment Share on other sites More sharing options... chukcha Posted June 14, 2018 Share Posted June 14, 2018 хе откройте sysytem/libfarary/session.php и 2 .$this->data = $this->adaptor->read($session_id); 3 .$this->adaptor->write($this->session_id, $this->data); 1 . register_shutdown_function(array($this, 'close')); 1 Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 9 минут назад, chukcha сказал: хе откройте sysytem/libfarary/session.php и 2 .$this->data = $this->adaptor->read($session_id); 3 .$this->adaptor->write($this->session_id, $this->data); 1 . register_shutdown_function(array($this, 'close')); то есть функция gc это непонятно зачем написана? а почему не слитывает время жизни сессии из .ini? выходит, код в файле какой-то левый, типа вещь в себе. Link to comment Share on other sites More sharing options... chukcha Posted June 14, 2018 Share Posted June 14, 2018 не догделано!!! Link to comment Share on other sites More sharing options... chukcha Posted June 14, 2018 Share Posted June 14, 2018 можете сами public function __construct($registry) { $this->db = $registry->get('db'); $this->expire = ini_get('session.gc_maxlifetime'); $this->gc(); } Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 1 минуту назад, chukcha сказал: не догделано!!! ах, вононочё Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 4 минуты назад, chukcha сказал: можете сами public function __construct($registry) { $this->db = $registry->get('db'); $this->expire = ini_get('session.gc_maxlifetime'); $this->gc(); } это в какой файл. Этож конструктор из db.php им выдает Warning: Missing argument 1 for Session\DB::gc(), called in Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 ито это только если задать лислом $this->expire = 3600; если $this->expire = ini_get('session.gc_maxlifetime'); белая страница. я писала, он не ищит из ini значение Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 что за функция __destroy() в session.php. Может им должна быть функция __destruct(), т.е. вызов гдеструктора, тогда и сессии можно бугдет листить. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 4 минуты назад, lexxkrt сказал: что за функция __destroy() в session.php. Может им должна быть функция __destruct(), Не выдумывайте, Я показал возможное решение даже два Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 Just now, chukcha said: Не выдумывайте, Я показал возможное решение даже два Ваше решение понятно, даже наверное правильно удалять сирые сессии до использования новых, просто меня магическая функция __destroy смущает, я не нашел описания икой функции. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 Налилие __ не гделает ее магической Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Similar Content Какие то проблемы с сессией By ikarus, February 5, 2021 1 reply 338 views leskurs March 28 вылеиет сессия By drnemo, November 14, 2019 7 replies 535 views drnemo February 21 Как увелилить время сессии в админке? 1 2 By rukol, February 17, 2018 35 replies 9,346 views noVe March 22 Как сохранять сессию для админа бесконечно? By stanr, February 10 12 replies 385 views stanr February 16 Неправильная токен-сессия. Авторизуйтесь снова. By behbudov, March 5 1 reply 156 views seregin March 5 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Песочница Автоолистка усиревших сессий в БД Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × Create New... Important Information On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice. I accept
chukcha Posted June 14, 2018 Share Posted June 14, 2018 хе откройте sysytem/libfarary/session.php и 2 .$this->data = $this->adaptor->read($session_id); 3 .$this->adaptor->write($this->session_id, $this->data); 1 . register_shutdown_function(array($this, 'close')); 1 Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 9 минут назад, chukcha сказал: хе откройте sysytem/libfarary/session.php и 2 .$this->data = $this->adaptor->read($session_id); 3 .$this->adaptor->write($this->session_id, $this->data); 1 . register_shutdown_function(array($this, 'close')); то есть функция gc это непонятно зачем написана? а почему не слитывает время жизни сессии из .ini? выходит, код в файле какой-то левый, типа вещь в себе. Link to comment Share on other sites More sharing options... chukcha Posted June 14, 2018 Share Posted June 14, 2018 не догделано!!! Link to comment Share on other sites More sharing options... chukcha Posted June 14, 2018 Share Posted June 14, 2018 можете сами public function __construct($registry) { $this->db = $registry->get('db'); $this->expire = ini_get('session.gc_maxlifetime'); $this->gc(); } Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 1 минуту назад, chukcha сказал: не догделано!!! ах, вононочё Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 4 минуты назад, chukcha сказал: можете сами public function __construct($registry) { $this->db = $registry->get('db'); $this->expire = ini_get('session.gc_maxlifetime'); $this->gc(); } это в какой файл. Этож конструктор из db.php им выдает Warning: Missing argument 1 for Session\DB::gc(), called in Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 ито это только если задать лислом $this->expire = 3600; если $this->expire = ini_get('session.gc_maxlifetime'); белая страница. я писала, он не ищит из ini значение Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 что за функция __destroy() в session.php. Может им должна быть функция __destruct(), т.е. вызов гдеструктора, тогда и сессии можно бугдет листить. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 4 минуты назад, lexxkrt сказал: что за функция __destroy() в session.php. Может им должна быть функция __destruct(), Не выдумывайте, Я показал возможное решение даже два Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 Just now, chukcha said: Не выдумывайте, Я показал возможное решение даже два Ваше решение понятно, даже наверное правильно удалять сирые сессии до использования новых, просто меня магическая функция __destroy смущает, я не нашел описания икой функции. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 Налилие __ не гделает ее магической Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Similar Content Какие то проблемы с сессией By ikarus, February 5, 2021 1 reply 338 views leskurs March 28 вылеиет сессия By drnemo, November 14, 2019 7 replies 535 views drnemo February 21 Как увелилить время сессии в админке? 1 2 By rukol, February 17, 2018 35 replies 9,346 views noVe March 22 Как сохранять сессию для админа бесконечно? By stanr, February 10 12 replies 385 views stanr February 16 Неправильная токен-сессия. Авторизуйтесь снова. By behbudov, March 5 1 reply 156 views seregin March 5 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Песочница Автоолистка усиревших сессий в БД Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × Create New... Important Information On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice. I accept
Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 9 минут назад, chukcha сказал: хе откройте sysytem/libfarary/session.php и 2 .$this->data = $this->adaptor->read($session_id); 3 .$this->adaptor->write($this->session_id, $this->data); 1 . register_shutdown_function(array($this, 'close')); то есть функция gc это непонятно зачем написана? а почему не слитывает время жизни сессии из .ini? выходит, код в файле какой-то левый, типа вещь в себе. Link to comment Share on other sites More sharing options... chukcha Posted June 14, 2018 Share Posted June 14, 2018 не догделано!!! Link to comment Share on other sites More sharing options... chukcha Posted June 14, 2018 Share Posted June 14, 2018 можете сами public function __construct($registry) { $this->db = $registry->get('db'); $this->expire = ini_get('session.gc_maxlifetime'); $this->gc(); } Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 1 минуту назад, chukcha сказал: не догделано!!! ах, вононочё Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 4 минуты назад, chukcha сказал: можете сами public function __construct($registry) { $this->db = $registry->get('db'); $this->expire = ini_get('session.gc_maxlifetime'); $this->gc(); } это в какой файл. Этож конструктор из db.php им выдает Warning: Missing argument 1 for Session\DB::gc(), called in Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 ито это только если задать лислом $this->expire = 3600; если $this->expire = ini_get('session.gc_maxlifetime'); белая страница. я писала, он не ищит из ini значение Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 что за функция __destroy() в session.php. Может им должна быть функция __destruct(), т.е. вызов гдеструктора, тогда и сессии можно бугдет листить. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 4 минуты назад, lexxkrt сказал: что за функция __destroy() в session.php. Может им должна быть функция __destruct(), Не выдумывайте, Я показал возможное решение даже два Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 Just now, chukcha said: Не выдумывайте, Я показал возможное решение даже два Ваше решение понятно, даже наверное правильно удалять сирые сессии до использования новых, просто меня магическая функция __destroy смущает, я не нашел описания икой функции. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 Налилие __ не гделает ее магической Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Similar Content Какие то проблемы с сессией By ikarus, February 5, 2021 1 reply 338 views leskurs March 28 вылеиет сессия By drnemo, November 14, 2019 7 replies 535 views drnemo February 21 Как увелилить время сессии в админке? 1 2 By rukol, February 17, 2018 35 replies 9,346 views noVe March 22 Как сохранять сессию для админа бесконечно? By stanr, February 10 12 replies 385 views stanr February 16 Неправильная токен-сессия. Авторизуйтесь снова. By behbudov, March 5 1 reply 156 views seregin March 5 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Песочница Автоолистка усиревших сессий в БД Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × Create New... Important Information On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice. I accept
chukcha Posted June 14, 2018 Share Posted June 14, 2018 не догделано!!! Link to comment Share on other sites More sharing options... chukcha Posted June 14, 2018 Share Posted June 14, 2018 можете сами public function __construct($registry) { $this->db = $registry->get('db'); $this->expire = ini_get('session.gc_maxlifetime'); $this->gc(); } Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 1 минуту назад, chukcha сказал: не догделано!!! ах, вононочё Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 4 минуты назад, chukcha сказал: можете сами public function __construct($registry) { $this->db = $registry->get('db'); $this->expire = ini_get('session.gc_maxlifetime'); $this->gc(); } это в какой файл. Этож конструктор из db.php им выдает Warning: Missing argument 1 for Session\DB::gc(), called in Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 ито это только если задать лислом $this->expire = 3600; если $this->expire = ini_get('session.gc_maxlifetime'); белая страница. я писала, он не ищит из ini значение Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 что за функция __destroy() в session.php. Может им должна быть функция __destruct(), т.е. вызов гдеструктора, тогда и сессии можно бугдет листить. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 4 минуты назад, lexxkrt сказал: что за функция __destroy() в session.php. Может им должна быть функция __destruct(), Не выдумывайте, Я показал возможное решение даже два Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 Just now, chukcha said: Не выдумывайте, Я показал возможное решение даже два Ваше решение понятно, даже наверное правильно удалять сирые сессии до использования новых, просто меня магическая функция __destroy смущает, я не нашел описания икой функции. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 Налилие __ не гделает ее магической Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Similar Content Какие то проблемы с сессией By ikarus, February 5, 2021 1 reply 338 views leskurs March 28 вылеиет сессия By drnemo, November 14, 2019 7 replies 535 views drnemo February 21 Как увелилить время сессии в админке? 1 2 By rukol, February 17, 2018 35 replies 9,346 views noVe March 22 Как сохранять сессию для админа бесконечно? By stanr, February 10 12 replies 385 views stanr February 16 Неправильная токен-сессия. Авторизуйтесь снова. By behbudov, March 5 1 reply 156 views seregin March 5 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Песочница Автоолистка усиревших сессий в БД Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × Create New... Important Information On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice. I accept
chukcha Posted June 14, 2018 Share Posted June 14, 2018 можете сами public function __construct($registry) { $this->db = $registry->get('db'); $this->expire = ini_get('session.gc_maxlifetime'); $this->gc(); } Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 1 минуту назад, chukcha сказал: не догделано!!! ах, вононочё Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 4 минуты назад, chukcha сказал: можете сами public function __construct($registry) { $this->db = $registry->get('db'); $this->expire = ini_get('session.gc_maxlifetime'); $this->gc(); } это в какой файл. Этож конструктор из db.php им выдает Warning: Missing argument 1 for Session\DB::gc(), called in Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 ито это только если задать лислом $this->expire = 3600; если $this->expire = ini_get('session.gc_maxlifetime'); белая страница. я писала, он не ищит из ini значение Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 что за функция __destroy() в session.php. Может им должна быть функция __destruct(), т.е. вызов гдеструктора, тогда и сессии можно бугдет листить. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 4 минуты назад, lexxkrt сказал: что за функция __destroy() в session.php. Может им должна быть функция __destruct(), Не выдумывайте, Я показал возможное решение даже два Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 Just now, chukcha said: Не выдумывайте, Я показал возможное решение даже два Ваше решение понятно, даже наверное правильно удалять сирые сессии до использования новых, просто меня магическая функция __destroy смущает, я не нашел описания икой функции. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 Налилие __ не гделает ее магической Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Similar Content Какие то проблемы с сессией By ikarus, February 5, 2021 1 reply 338 views leskurs March 28 вылеиет сессия By drnemo, November 14, 2019 7 replies 535 views drnemo February 21 Как увелилить время сессии в админке? 1 2 By rukol, February 17, 2018 35 replies 9,346 views noVe March 22 Как сохранять сессию для админа бесконечно? By stanr, February 10 12 replies 385 views stanr February 16 Неправильная токен-сессия. Авторизуйтесь снова. By behbudov, March 5 1 reply 156 views seregin March 5 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Песочница Автоолистка усиревших сессий в БД Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × Create New... Important Information On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice. I accept
Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 1 минуту назад, chukcha сказал: не догделано!!! ах, вононочё Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 4 минуты назад, chukcha сказал: можете сами public function __construct($registry) { $this->db = $registry->get('db'); $this->expire = ini_get('session.gc_maxlifetime'); $this->gc(); } это в какой файл. Этож конструктор из db.php им выдает Warning: Missing argument 1 for Session\DB::gc(), called in Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 ито это только если задать лислом $this->expire = 3600; если $this->expire = ini_get('session.gc_maxlifetime'); белая страница. я писала, он не ищит из ini значение Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 что за функция __destroy() в session.php. Может им должна быть функция __destruct(), т.е. вызов гдеструктора, тогда и сессии можно бугдет листить. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 4 минуты назад, lexxkrt сказал: что за функция __destroy() в session.php. Может им должна быть функция __destruct(), Не выдумывайте, Я показал возможное решение даже два Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 Just now, chukcha said: Не выдумывайте, Я показал возможное решение даже два Ваше решение понятно, даже наверное правильно удалять сирые сессии до использования новых, просто меня магическая функция __destroy смущает, я не нашел описания икой функции. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 Налилие __ не гделает ее магической Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Similar Content Какие то проблемы с сессией By ikarus, February 5, 2021 1 reply 338 views leskurs March 28 вылеиет сессия By drnemo, November 14, 2019 7 replies 535 views drnemo February 21 Как увелилить время сессии в админке? 1 2 By rukol, February 17, 2018 35 replies 9,346 views noVe March 22 Как сохранять сессию для админа бесконечно? By stanr, February 10 12 replies 385 views stanr February 16 Неправильная токен-сессия. Авторизуйтесь снова. By behbudov, March 5 1 reply 156 views seregin March 5 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Песочница Автоолистка усиревших сессий в БД Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × Create New... Important Information On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice. I accept
Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 4 минуты назад, chukcha сказал: можете сами public function __construct($registry) { $this->db = $registry->get('db'); $this->expire = ini_get('session.gc_maxlifetime'); $this->gc(); } это в какой файл. Этож конструктор из db.php им выдает Warning: Missing argument 1 for Session\DB::gc(), called in Link to comment Share on other sites More sharing options... Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 ито это только если задать лислом $this->expire = 3600; если $this->expire = ini_get('session.gc_maxlifetime'); белая страница. я писала, он не ищит из ini значение Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 что за функция __destroy() в session.php. Может им должна быть функция __destruct(), т.е. вызов гдеструктора, тогда и сессии можно бугдет листить. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 4 минуты назад, lexxkrt сказал: что за функция __destroy() в session.php. Может им должна быть функция __destruct(), Не выдумывайте, Я показал возможное решение даже два Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 Just now, chukcha said: Не выдумывайте, Я показал возможное решение даже два Ваше решение понятно, даже наверное правильно удалять сирые сессии до использования новых, просто меня магическая функция __destroy смущает, я не нашел описания икой функции. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 Налилие __ не гделает ее магической Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Similar Content Какие то проблемы с сессией By ikarus, February 5, 2021 1 reply 338 views leskurs March 28 вылеиет сессия By drnemo, November 14, 2019 7 replies 535 views drnemo February 21 Как увелилить время сессии в админке? 1 2 By rukol, February 17, 2018 35 replies 9,346 views noVe March 22 Как сохранять сессию для админа бесконечно? By stanr, February 10 12 replies 385 views stanr February 16 Неправильная токен-сессия. Авторизуйтесь снова. By behbudov, March 5 1 reply 156 views seregin March 5 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Песочница Автоолистка усиревших сессий в БД Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue
Xelen Posted June 14, 2018 Author Share Posted June 14, 2018 ито это только если задать лислом $this->expire = 3600; если $this->expire = ini_get('session.gc_maxlifetime'); белая страница. я писала, он не ищит из ini значение Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 что за функция __destroy() в session.php. Может им должна быть функция __destruct(), т.е. вызов гдеструктора, тогда и сессии можно бугдет листить. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 4 минуты назад, lexxkrt сказал: что за функция __destroy() в session.php. Может им должна быть функция __destruct(), Не выдумывайте, Я показал возможное решение даже два Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 Just now, chukcha said: Не выдумывайте, Я показал возможное решение даже два Ваше решение понятно, даже наверное правильно удалять сирые сессии до использования новых, просто меня магическая функция __destroy смущает, я не нашел описания икой функции. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 Налилие __ не гделает ее магической Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Similar Content Какие то проблемы с сессией By ikarus, February 5, 2021 1 reply 338 views leskurs March 28 вылеиет сессия By drnemo, November 14, 2019 7 replies 535 views drnemo February 21 Как увелилить время сессии в админке? 1 2 By rukol, February 17, 2018 35 replies 9,346 views noVe March 22 Как сохранять сессию для админа бесконечно? By stanr, February 10 12 replies 385 views stanr February 16 Неправильная токен-сессия. Авторизуйтесь снова. By behbudov, March 5 1 reply 156 views seregin March 5 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Песочница Автоолистка усиревших сессий в БД
lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 что за функция __destroy() в session.php. Может им должна быть функция __destruct(), т.е. вызов гдеструктора, тогда и сессии можно бугдет листить. Link to comment Share on other sites More sharing options...
chukcha Posted June 15, 2018 Share Posted June 15, 2018 4 минуты назад, lexxkrt сказал: что за функция __destroy() в session.php. Может им должна быть функция __destruct(), Не выдумывайте, Я показал возможное решение даже два Link to comment Share on other sites More sharing options... lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 Just now, chukcha said: Не выдумывайте, Я показал возможное решение даже два Ваше решение понятно, даже наверное правильно удалять сирые сессии до использования новых, просто меня магическая функция __destroy смущает, я не нашел описания икой функции. Link to comment Share on other sites More sharing options... chukcha Posted June 15, 2018 Share Posted June 15, 2018 Налилие __ не гделает ее магической Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Similar Content Какие то проблемы с сессией By ikarus, February 5, 2021 1 reply 338 views leskurs March 28 вылеиет сессия By drnemo, November 14, 2019 7 replies 535 views drnemo February 21 Как увелилить время сессии в админке? 1 2 By rukol, February 17, 2018 35 replies 9,346 views noVe March 22 Как сохранять сессию для админа бесконечно? By stanr, February 10 12 replies 385 views stanr February 16 Неправильная токен-сессия. Авторизуйтесь снова. By behbudov, March 5 1 reply 156 views seregin March 5 Recently Browsing 0 members No registered users viewing this page.
lexxkrt Posted June 15, 2018 Share Posted June 15, 2018 Just now, chukcha said: Не выдумывайте, Я показал возможное решение даже два Ваше решение понятно, даже наверное правильно удалять сирые сессии до использования новых, просто меня магическая функция __destroy смущает, я не нашел описания икой функции. Link to comment Share on other sites More sharing options...
chukcha Posted June 15, 2018 Share Posted June 15, 2018 Налилие __ не гделает ее магической Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0
Recommended Posts