简体   繁体   中英

Use same codeigniter files session in second codeigniter from the first one which are having different database

I have two codeigniter projects working on www.domain.com and www.domain.com/blog . I want to use the same session generated in domain.com. Using the login of the first one. I tried having same sess_save_path for both the codeigniters but does not work.

Option 1: If you are using APIs to handle request. Try using JSON web token

ref: https://jwt.io/

Option 2: Use Local Storage for both Codeigniter

ref: https://www.w3schools.com/jsref/prop_win_localstorage.asp

there are many different options available.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM