Welcome Guest, Not a member yet? Register   Sign In
User Authentication and Sessions? + Questions on Postgre vs MySQL
#4

[eluser]Rick Jolly[/eluser]
Well OBSession doesn't use php native sessions, so you won't be able to use $_SESSION with it. By default, native sessions store session data in a file and just the session id in a cookie. If you'd rather store session data in the database, you can still use native sessions by using the session_set_save_handler() function and implementing methods to read, write, etc. to interact with the database. There are classes out there that combine php native sessions with database storage, but none developed by CI users that I know of.

As for question #3, you might want to cache the data. You can cache the database results: http://ellislab.com/codeigniter/user-gui...ching.html. Alternatively, CI allows you to cache an entire page. There are other methods for caching page fragments.


Messages In This Thread
User Authentication and Sessions? + Questions on Postgre vs MySQL - by El Forum - 01-26-2008, 01:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB