Session is not holding the data When I use wordpress - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Session is not holding the data When I use wordpress (/showthread.php?tid=54984) |
Session is not holding the data When I use wordpress - El Forum - 10-04-2012 [eluser]Unknown[/eluser] Hi all, I have two applications 1. CodeIgniter 2.Wordpress What I want is if I run http://www.mydomain.com/ci/controller/ It has to Fetch the wordpress Search template(mytheme/search.php) along with my CI Session Data. For this What I did was 1. In index.php I included wordpress/wp-load.php Code: require_once(APPPATH."../../wordpress/wp-load.php"); 2. In View File of my controller I copied the Wordpress Search page Code: <?php I could see the result page rendering nicely, BUT Here is my Problem The Session Data What Ever I am setting is vanishing at this point. Every Page Refresh I am seeing a New Session ID. All My CI Session data is lost. How can I Hold the CI session data. Please Help. |