• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
why my session lost in other pages?

#2
(11-11-2017, 03: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, 11:29 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.