Welcome Guest, Not a member yet? Register   Sign In
Switching to memcache for sessions
#6

(04-25-2019, 09:00 AM)daveĀ friend Wrote:
(04-24-2019, 11:13 PM)priyankaamonker Wrote: Thanks for replying to my query!

I see that in Session_files_driver it does;
ini_set('session.save_path', $this->_config['save_path']); // setting the php.ini

But does not do anything similar in Session_memcache_driver.
I tried adding it in the __contruct but that dint work.

Im using CI version 3.3.0

True it does not call ini_set('session.save_path', ..., but it doesn't need to.
The Memcached driver does not use 'session.save_path' from php.ini. It only needs/uses a value from $this->_config['save_path'].

Is it not working using just the $config items?

Thanks for answering my question!

How do I verify that my sessions I being saved in memcache and not in files.
What is the key used in codeignitor to save sessions?
Reply


Messages In This Thread
RE: Switching to memcache for sessions - by priyankaamonker - 04-25-2019, 11:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB