14 questions
1
vote
2
answers
76
views
Toast Notification Appears on Every Page After Login Failure in CodeIgniter
I'm facing an issue with toast notifications in my CodeIgniter app. After a failed login attempt, the error message is displayed correctly using Toastr. However, this message keeps appearing on every ...
0
votes
2
answers
70
views
Log in Validation alert pop up even though i'm not login yet
I try to make an alert for invalid login so I use
$this->session->set_flashdata('error', 'Invalid Credentials');
redirect("admin/login");
and i put this in my index ...
0
votes
1
answer
1k
views
route/redirect to index of same controller with data code igniter 4
I want to redirect route to index of same controller. My scenario is after store of data in database I want to show message. Now I tried using FlashData like:
$this->session->setFlashdata('...
0
votes
1
answer
42
views
sending flashdata site locks up a couple of seconds
I have a codeigniter project I am working on. When a certain flashdata gets added the site locks up for no apparent reason. I write some data to my database or remove it. Then according to a success ...
0
votes
1
answer
95
views
Codeigniter how to stop page reloading looping ? when i use session set_flashdata ? it going looping
When I use CodeIgniter session set_flashdata and insert data in database page going looping infinity. but without use set_flashdata it working fine perfectly.
$this->session->set_flashdata('...
0
votes
1
answer
407
views
Cannot get the flashdata or userdata value to another function
I am trying to get the value of the flashdata and userdata from one function to another within the same controller. It seems that I am using redirect in the func A to func B. So when the func loads it ...
1
vote
2
answers
4k
views
codeigniter, set_flashdata not working
I read on stack overflow about flash data only valid till next server request, therefore I made new flashdata for couple of message display..
here below is the my code
This is my controller ...