can I run Session class without Active Records ? |
[eluser]Mahmoud M. Abdel-Fattah[/eluser]
I'm developing a web 2.0 website, which may have some million items, with some thousands users !! Before starting using CI, I read a lot on this forum to know if CI is good for HUGE / BIG / LARGE projects, and I found that no problem with it. but in one post I found a reply that doesn't recommend using Active Records on big websites. So, can I use SESSIONS class without ACTIVE RECORDS ? or should I use native php session functions ?! If not, I want to make a $_SESSION check in the beg. of each file, So, what should I create (library / model) ?
[eluser]pistolPete[/eluser]
[quote author="Mahmoud M. Abdel-Fattah" date="1237756960"]So, can I use SESSIONS class without ACTIVE RECORDS ?[/quote] If you only use cookies, Active Record is not used, otherwise it is. User guide: Quote:Note: that some CodeIgniter classes such as Sessions require Active Records be enabled to access certain functionality.
[eluser]Mahmoud M. Abdel-Fattah[/eluser]
Thanks for your fast reply so, now what about the 2nd question ?? If I want to use PHP $_SESSION and make some $_SESSION check on each page, what should I create (library / model) ??
[eluser]pistolPete[/eluser]
Have a look at the wiki, there are some native sessions libraries (but some may be a bit outdated) which are a replacement for the CI session library: http://codeigniter.com/wiki/Category:Lib...::Session/
[eluser]Coomer[/eluser]
I store my sessions in memcached. I've been meaning to make the code more generic and post it here. Hopefully I can get to that soon.
|
Welcome Guest, Not a member yet? Register Sign In |