31
votes
6answers
46k views

the best way to make codeigniter website multi-language. calling from lang arrays depends on lang session?

I'm researching hours and hours, but I could not find any clear, efficient way to make it :/ I have a codeigniter base website in English and I have to add a Polish language now. What is the best way ...
29
votes
4answers
21k views

CodeIgniter sessions vs PHP sessions

I'm relatively new to CodeIgniter and am making my first CI project in which there are user-accounts, etc. In the past, I have always used PHP's $_SESSION variable to this end. However, CI seems to ...
16
votes
5answers
9k views

How does CodeIgniter know a cookie holds valid session data?

In CodeIgniter, session data are saved in a cookie by default. But there must be also a file on my server (named as the session ID) to verify that the data (in the cookie) is valid, or am I wrong? ...
16
votes
4answers
4k views

Best library for PHP Sessions

I have been using the CodeIgniter system for a while now - but it has it's short comings. I am grateful for what it taught me, but now I need a library for a new non-codeigniter project and so I am ...
9
votes
3answers
8k views

How to create “remember me checkbox” using Codeigniter session library?

in Codeigniter I am building an Authentication system for my web site and to achieve that I use session library session->set_userdata('username') this will save the session -I believe- for ...
9
votes
1answer
2k views

Should I use Database Sessions or Native PHP File Sessions?

I've just moved over from my own MVC framework to a community supported one (CodeIgniter). I'm just converting my sessions over to the CodeIgniter functions and am noticing that they, by default, ...
7
votes
3answers
9k views

Codeigniter flashdata - am I using it correctly?

I learned about flashdata and decided to use it to display messages based on database interactions. For example if no rows are affected I want to display Post id is invalid or does not exist! In my ...
6
votes
5answers
15k views

‘Remember Me’ Login in CodeIgniter

How do you implement this in CodeIgniter?
6
votes
5answers
4k views

Codeigniter session bugging out with ajax calls

My CodeIgniter app uses the session library and saves data to the DB. I've been having some problems where blank sessions are created after a certain ajax call. Upon investigating, it seems that ...
6
votes
2answers
4k views

CodeIgniter session help, cookies not secure?

I'm just getting into learning about sessions, and for my purposes, I want to create something that upon every request from the client, the server authenticates that user, and only then performs ...
6
votes
3answers
4k views

Using memcached as a session storage with CodeIgniter

I am researching possibilities of using memcached as a session storage for a system built on CodeIgniter. Has anybody done this before(that's probably a stupid question :) and if so what's your ...
6
votes
3answers
2k views

Destroying a specific session in Code Igniter

I want to be able to log users out of my app built in Code Igniter. I know how to end an active local session: $this->session->sess_destroy(); But how can I destroy a session that was ...
6
votes
2answers
2k views

good idea to integrate CodeIgniter with phpBB3 User System?

Is there a way to integrate CodeIgniter with phpBB3? The reason I ask is because I would like to use the user system as a base for my future CodeIgniter Application. Is it a good idea to use phpBB as ...
5
votes
3answers
6k views

Codeigniter & PHP check if session exist [closed]

How can i simply check if cookies are enabled and user session too in PHP? I need the really lighter piece of code of this world to do that, can anyone show me somenthing? I'm on Codeigniter but i'm ...
5
votes
5answers
5k views

CodeIgniter “flashdata” doesn't work

I use CodeIgniter 2.1.0, i want after insert data in database get a message like "Your information was successfully updated.". For this work i have in CI_Controller following function: function ...

1 2 3 4 5 37
15 30 50 per page