access codeigniter session values from external files

前端 未结 7 2263
深忆病人
深忆病人 2020-12-06 07:28

In my codeigniter project i have added KCK finder.

it needs some of session values which is controlled by codeigniter. how can i access CI session values from extern

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-06 08:11

    I am using an external login app and wanted to use data from CI sessions. I found this information http://codeigniter.com/forums/viewthread/86380/ on how to do that without running anything from the CI framework. For me this is ideal as it will keep any incompatibilities from causing issues.

    In case you have issues extracting the information from the link:

    1. If using ci session cookies then get the session cookie only.
    2. If using ci session with database then get the session cookie and query for a match in the database in the ci_session table to verify session.
    3. Use data and add data as needed in cookie (and in database if using database session).

提交回复
热议问题