Welcome Guest, Not a member yet? Register   Sign In
Using PHP Session and the CI Session together
#17

[eluser]bretticus[/eluser]
Thanks @WanWizard. I had always assumed so because I never use cookie based sessions (even with encryption turned on.) Never took the time to find out (and wasn't going to poke around at the time of writing my reply.) Thanks.

I just want to reiterate. It's not a great idea to store significant amounts of data in a database session either (I mean, you did say that you didn't want to make another trip to he database after all!) If you are storing queries, store them with op cache extensions (APC, memcache, etc.) If they are session specific, you could hash the username (or just use the session id) as keys for op cache. If you love the session idea, I'd recommend using PHP's session with memcached (this is only possible if your server is not shared. That is, you or someone in your company, has root access to do the set up.)

Of course, if the data isn't too large, even database enabled CI sessions are okay (because returning one column from one row with a primary key is always faster than performing a more complex query.)


Messages In This Thread
Using PHP Session and the CI Session together - by El Forum - 08-24-2010, 03:15 AM
Using PHP Session and the CI Session together - by El Forum - 08-24-2010, 05:19 AM
Using PHP Session and the CI Session together - by El Forum - 08-24-2010, 05:32 AM
Using PHP Session and the CI Session together - by El Forum - 08-24-2010, 05:37 AM
Using PHP Session and the CI Session together - by El Forum - 08-24-2010, 05:50 AM
Using PHP Session and the CI Session together - by El Forum - 08-24-2010, 06:49 AM
Using PHP Session and the CI Session together - by El Forum - 08-24-2010, 07:19 AM
Using PHP Session and the CI Session together - by El Forum - 08-24-2010, 01:44 PM
Using PHP Session and the CI Session together - by El Forum - 08-24-2010, 01:51 PM
Using PHP Session and the CI Session together - by El Forum - 08-24-2010, 01:54 PM
Using PHP Session and the CI Session together - by El Forum - 08-24-2010, 02:16 PM
Using PHP Session and the CI Session together - by El Forum - 08-24-2010, 02:28 PM
Using PHP Session and the CI Session together - by El Forum - 08-24-2010, 02:47 PM
Using PHP Session and the CI Session together - by El Forum - 08-25-2010, 03:08 AM
Using PHP Session and the CI Session together - by El Forum - 08-25-2010, 09:42 AM
Using PHP Session and the CI Session together - by El Forum - 08-25-2010, 12:34 PM
Using PHP Session and the CI Session together - by El Forum - 08-25-2010, 12:52 PM
Using PHP Session and the CI Session together - by El Forum - 08-25-2010, 01:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB