CodeIgniter Forums
codeigniter 4.04 session destroy automatically - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: codeigniter 4.04 session destroy automatically (/showthread.php?tid=78732)

Pages: 1 2


RE: codeigniter 4.04 session destroy automatically - InsiteFX - 04-17-2021

PHP Sessions Login with remember me

Make sure you use a token and save it to the users record every time.


RE: codeigniter 4.04 session destroy automatically - shashi - 04-17-2021

Thanks for reply
I tried ..still getting logout automatically

Can u give same in codeignter 4 with secure one
Will implement easily
As I think some issue in my codeignter 4 login
Already done all settings still same issue

How u guys do...u guys not facing such issues what...
If not please share u codeignter 4 folder with all settings ..like php.in etc

Thanks


RE: codeigniter 4.04 session destroy automatically - shashi - 04-18-2021

Also just questions
That remember me
Will work for login and when user come again will not need to login again
But what I am facing is logout from page which is already tested with session check condition
Users are logout suddenly
Help me with strong code.


RE: codeigniter 4.04 session destroy automatically - InsiteFX - 04-18-2021

Implementing Secure User Authentication in PHP Applications with Long-Term Persistence (Login with "Remember Me" Cookies)


RE: codeigniter 4.04 session destroy automatically - shashi - 04-18-2021

Okay thanks

I taught u would share your codeigniter files

It's strange non of here are not facing such issues..and if not, still not sharing.

I meant, why same is not working in codeigniter...does framework need to be corrected for session

Any way will try it, atleast you helping me

Thanks


RE: codeigniter 4.04 session destroy automatically - InsiteFX - 04-18-2021

I use Myth/Auth which is built for CodeIgniter 4


RE: codeigniter 4.04 session destroy automatically - shashi - 04-19-2021

(04-18-2021, 11:15 AM)InsiteFX Wrote: I use Myth/Auth which is built for CodeIgniter 4

 Thanks for your continued support

I had tried myth-auth... But found bit complicated.. hence had drop same

By the way just want to know
session.gc_maxlifetime can be 0 ?

Bcz same I saw in core session.php

Thanks


RE: codeigniter 4.04 session destroy automatically - InsiteFX - 04-19-2021

No 0 will turn sessions off it should be set to 1.