Welcome Guest, Not a member yet? Register   Sign In
Sessions class - navite php sessions, cookies or both?
#1

[eluser]asylmottaket[/eluser]
Hi people!

Could it be a nice feature for the future to add support for both ways?

Than in the config-file choose what you would fancy?

$config['sessions'] = 'native'; /// or $config['sessions'] = 'cookies';


Good or bad idea?
#2

[eluser]phazei[/eluser]
Great idea.
#3

[eluser]pistolPete[/eluser]
This should be posted in Feature Requests.
#4

[eluser]TheFuzzy0ne[/eluser]
Personally, I don't see the point. What would the advantages be?
#5

[eluser]phazei[/eluser]
Occasionally I want to store all the users information in their session. 4K does NOT go a long way. Also if someone has their own server, I think sessions are much more secure.

If cookies are on, then the session id won't be put in the address bar, and if cookies are off, well, CI sessions wouldn't work at all.

Even if the session_id is put in the address bar, by default practice I always store the IP in the session and compare that to $_SERVER['REMOTE_ADDR'] anyway as everyone should.
#6

[eluser]TheFuzzy0ne[/eluser]
I've always managed with 4K just fine, but just in case, I choose to use the database which allows for much more data to be stored.
#7

[eluser]JayTee[/eluser]
As a rule, I never never never use the cookie for anything other than the sessionid.

Here's a GREAT article that explains the issues with cookies. While most of us here don't necessarily work with sites a gigantic as yahoo, the performance hit is still the same:
http://yuiblog.com/blog/2007/03/01/perfo...ch-part-3/
#8

[eluser]asylmottaket[/eluser]
I've made some site for some offshore mechanics working on oil platforms, and they cant always access the login-site. They have to log in to report issues etc. Some oil riggs wont even accept cookies, because the security rules are insane/extreme.




Theme © iAndrew 2016 - Forum software by © MyBB