Welcome Guest, Not a member yet? Register   Sign In
why my session lost in other pages?
#2

(11-11-2017, 02:29 AM)h_qorbani Wrote:
PHP Code:
$config['cookie_domain'   'http://domain.com/admin/'

This is a full URL, not a domain name.
If you want the session to only be available on that URL, do this:

PHP Code:
$config['cookie_domain'] = 'domain.com';
$config['cookie_path'] = '/admin/'

(where of course 'domain.com' is just an example and I hope you meant that as well)

However, with you autoloading the session library, it will still create sessions on other paths and you'll have the same issue if you try to use them.
Reply


Messages In This Thread
RE: why my session lost in other pages? - by Narf - 11-11-2017, 10:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB