Welcome Guest, Not a member yet? Register   Sign In
active_record = false & database sessions causes CI to fail out of the box
#1

[eluser]yelirekim[/eluser]
If you disable active record support in your configuration file, you're unable to use the Session library with database sessions because they use active record for their queries. This is the first time i ran into this problem, and it's not like it was hidden, I think it was probably just an oversight in documentation or the implementation of those DB calls.

I think at the very least there should be a note about this in the config file or in the documentation, but maybe even changing the db calls in Session.php to just use stock SQL might be a good idea as well.
#2

[eluser]waspfactoryuk[/eluser]
[quote author="yelirekim" date="1233284376"]maybe even changing the db calls in Session.php to just use stock SQL might be a good idea as well.[/quote]

I just noticed the use of active_record in Session.php too while looking through the source trying to get sessions to play nicely with AJAX. I would vote for changing the db calls rather than forcing the use of active record.
#3

[eluser]Spockz[/eluser]
This is the same problem I encountered, again, here:
http://ellislab.com/forums/viewthread/104466/




Theme © iAndrew 2016 - Forum software by © MyBB