Welcome Guest, Not a member yet? Register   Sign In
codeigniter 4.04 session destroy automatically
#11

(This post was last modified: 04-18-2021, 01:24 AM by InsiteFX.)

PHP Sessions Login with remember me

Make sure you use a token and save it to the users record every time.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#12

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
Reply
#13

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.
Reply
#14

Implementing Secure User Authentication in PHP Applications with Long-Term Persistence (Login with "Remember Me" Cookies)
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#15

(This post was last modified: 04-18-2021, 09:39 AM by shashi.)

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
Reply
#16

I use Myth/Auth which is built for CodeIgniter 4
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#17

(This post was last modified: 04-19-2021, 07:06 AM by shashi.)

(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
Reply
#18

No 0 will turn sessions off it should be set to 1.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB