Welcome Guest, Not a member yet? Register   Sign In
Session is not working
#1

[eluser]Unknown[/eluser]
I just downloaded CodeIgniter 2.0.2 from the website.
Installed, and configured some addons like HMVC, i18n.
I've set 'database','session' in autoload.

The problem is that the session is recreated every time.
Some steps:
- Open Firefox (or Chrome, it doesn't matter)
- Open The website
- Look at DB, a new row is created in ci_sessions
- Refresh the page in Firefox
- Look at DB, there are 2 rows
- and so on.. every time I refresh, a new session is created

Any idea on how to fix this?

--

Just tried with CodeIgniter 2.0.1, and I have the same problem.
Just tried with CodeIgniter 2.0.0, and I have the same problem.

--

After some debug, i figured out that it can't find cookies:
Code:
// No cookie?  Goodbye cruel world!...
if ($session === FALSE)
But the browser actually has the cookie Smile

--

Ok well that was a configuration bug.
I can't use the "." in the cookie name or prefix,
so I had to use "foobar" instead of "foo.bar".

But well, that's ok Smile

--

Another question, is it safe to use CI 2.0.2 now?




Theme © iAndrew 2016 - Forum software by © MyBB