All Questions
Tagged with user-data codeigniter
16 questions
0
votes
1
answer
85
views
selecting current user with active records in codeigniter
I have 2 tables members and bank, bank has a foreign key from members (id).
the foreign key in bank is called (mem_id).
I wish to show all data in bank that matches the current users loged in
...
1
vote
1
answer
233
views
setting sessions to use codeigniter
OK I am trying to build a user profile where there first_name, password and username are shown in the view.
because password and username are set in the model its very easy to set the session ...
3
votes
1
answer
6k
views
View user data along with profile pic in codeigniter?
I want to show user data along with profile pic on it's profile page i am successful in displaying the profile pic but have some doubts in my mind how can i other show user data on same page should i ...
-1
votes
1
answer
454
views
if condition using codeigniter
I am new in codeigniter. I have problem with if statement when I fetch the data from database it does not show the wanted results and I have table name 'users' and in users table one column is rights. ...
0
votes
3
answers
4k
views
Codeigniter userdata session is empty
When I set the session using set_userdata and check that at the other page, everything is setted well excepting userdata...
I use var_dump($this->session->all_userdata()); and code says
array(...
-2
votes
1
answer
296
views
Codeigniter userdata removed right after creation
I am working on a login script and it used to work perfectly but then all of a sudden it stopped working. I commented out a lot of code but it still does the same. When I login it sees the userdata ...
0
votes
1
answer
293
views
Storing Session Data Securely With Codeigniter?
For all of my projects I use codeigniter as my framework. I always use sessions in order to get store things like user_string and user_permissions to determine who can access certain functions and ...
0
votes
2
answers
359
views
codeigniter unsetting session works unexpectedly
I submit form to controller/complete action, set
$this->session->set_userdata('success', 3);
and then redirect to index action with redirect('controller', 'refresh');.
In my view I get
$...
1
vote
2
answers
2k
views
CodeIgniter set_userdata() triggers server 500 error
CodeIgniter Issue: Server 500 Error.
Whenever I call set_userdata() function, it triggers Server 500 Error. Sample code of login is below. I'm hosting it on SiteGround. if I remove set_userdata ...
0
votes
1
answer
1k
views
CodeIgniter Invalid Driver Requested (Sessions)
I'm receiving the following error on all pages in a CodeIgniter application.
Invalid driver requested: Session_userdata
Does anyone have any idea what causes this? I don't seem to be able to find ...
0
votes
2
answers
855
views
Codeigniter Session (User data)
I searched on google and found that here at Stack there are several people with similar problems to mine, but none of the answers actually solved my problem. I have an application developed on ...
3
votes
2
answers
5k
views
Can't use the method return value in write context
I'm using codeigniter and trying to make an if statement for if the controllers have changed. What I have right now gives the error.
if (isset($this->session->userdata('lastUrl')) && $...
0
votes
2
answers
298
views
Computer isn't saving session [duplicate]
The session on a computer is not being saved across pages. It is on my computer, but not on a different one. The computer has cookies enabled. Is there anything that might cause a computer not to save ...
6
votes
1
answer
28k
views
unsetting some session data in codeigniter
I am saving some data in a session, and certain points in my websites, I am giving the user the option to removes certain parts of the session based on the array key, the array I get when I do,
...
4
votes
5
answers
37k
views
Error 310 (net::ERR_TOO_MANY_REDIRECTS):
What is this error:
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.
I use PHP CodeIgniter and library SimpleLoginSecure, this is my code:
if ($this->session->userdata('...
3
votes
1
answer
2k
views
codeigniter set_userdata not preserving types in session data
In CodeIgniter 1.7.3 when you use set_userdata to add boolean, integer, and string values, and then immediately read them back, the types are preserved. But if you redirect to another page and read ...