Welcome Guest, Not a member yet? Register   Sign In
Why would you use CI session class over php sessions?
#1

[eluser]jv2222[/eluser]
Hi,

I'm just wondering why you would use CI sessions over php sessions what advantage would it give you?

Cheers,
Justin
#2

[eluser]stuffradio[/eluser]
This has been asked many times, do a search in the database.

One thing you can do is use the database to store your session data. Just do a quick search and you'll find your answer of the advantages!
#3

[eluser]jv2222[/eluser]
I did search was unable to find. Any hints on a search term to find these threads?

Cheers,
Justin
#4

[eluser]jv2222[/eluser]
I don't quite get why you would use the database to store session data vs php native filesys session handeling. Isn't that quite resource intensive, for minimal gain?

Just trying to clarify if I've missed out on a big benefit.
#6

[eluser]jedd[/eluser]
Look for any post by mrbinky3000 - he populated quite a few threads with complaints about CI sessions.

In general the answer you're looking for is 'because they're easier, bigger, and possibly something else too'.
#7

[eluser]jv2222[/eluser]
[quote author="stuffradio" date="1261031343"]Here are a few pages

http://ellislab.com/forums/viewthread/136538/
http://ellislab.com/forums/viewthread/130577/
http://ellislab.com/forums/viewthread/129381/[/quote]

Ahh, the fish but not the fishing rod...

But seriously thx, it's helped to explain the issue Smile
#8

[eluser]jedd[/eluser]
[quote author="jv2222" date="1261031937"]
But seriously thx, it's helped to explain the issue Smile[/quote]

Well, you're ahead of me then.

I still don't know what the issue actually is (or was).
#9

[eluser]jv2222[/eluser]
[quote author="jedd" date="1261031800"]Look for any post by mrbinky3000 - he populated quite a few threads with complaints about CI sessions.

In general the answer you're looking for is 'because they're easier, bigger, and possibly something else too'.[/quote]

LOL @ "possibly something else too"
#10

[eluser]jedd[/eluser]
Well .. come on. If you haven't read the actual [url="/user_guide/libraries/sessions.html"]Session Class[/url] page in the user guide before asking, then you are deserving of a poke in the eye with a blunt stick.

And if you have read it, then you'll have seen a few reasons why CI sessions are better than native PHP sessions.




Theme © iAndrew 2016 - Forum software by © MyBB