Welcome Guest, Not a member yet? Register   Sign In
still losing session userdata across a redirect
#13

(12-01-2017, 08:49 AM)richb201 Wrote: I changed the past for cookies to: $config['sess_save_path'] = 'c:\xampp\htdocs\sub_crud\session_cookies';

>>A cookie with the 'secure' flag can't be sent over plain HTTP (must be HTTPS).
No prob here. I have secure set to false.

>>A cookie set for domain foo.bar won't be sent to foo.baz, naturally.
I have this set to : $config['cookie_domain'] = ''; What should it be set to?

>>A cookie set for path /foo won't be sent to /bar, also naturally.
This is set to $config['cookie_path'] = '/';
>>You should also check/show your cookie settings.

Where is this? Do you mean?


Code:
$config['cookie_prefix'] = '';
$config['cookie_domain'] = '';
$config['cookie_path'] = '/';
$config['cookie_secure'] = FALSE;
$config['cookie_httponly'] = FALSE;

Yes, that is what I meant.

cookie_domain should be set to your website's domain ... I just now notice that you're working on localhost - that can cause problems with cookies, try emulating an actual hostname.

(12-01-2017, 09:44 AM)daveĀ friend Wrote: Try a more "sane" folder to store the session files.

PHP Code:
$config['sess_save_path'] = APPPATH.'cache'

I don't think your cookies are working correctly.

You give up on using my session testing class?

Session files are not cache, don't recommend this.
A directory prepared specifically for session files is the most sane thing.
Reply


Messages In This Thread
RE: still losing session userdata across a redirect - by Narf - 12-02-2017, 10:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB