I have a CodeIgniter site that is nested in a Wordpress site.
If users already login to the Wordpress site (use $_SESSION
variable to manage login) then they can access to CodeIgniter site too. But when I try to access $_SESSION
in CodeIgniter site to check login, all the $_SESSION
data I set in WordPress site is gone. I can only see the __ci_last_regenerate of CodeIgniter. I think that CodeIgniter clears all the data in $_SESSION
.
How can I keep $_SESSION
data I set from WordPress authentication (just use $_SESSION
to handle ) in the CodeIgniter site?