[eluser]dcallan[/eluser]
Hi all, strange problem, I have a page called myfavourites, and when I load the regular page, the PHP session var comes out fine, but when I included an myfavourites/ajaxview controller, the session array is empty within that controller, when I view the master myfavourites page. What's strange too is that when I load the ajax controller directly the session variable is available and populated. How come the included file/controller is not getting the session vars. They are set in My_Controller, which both myfavourites/index and myfavourites/ajaxview subclass from
Code:
<table border="1">
<tr>
<td>
Add a product to your favourites
<input type="text" id="productIDtoaddtofavourites">
<input type="submit" value="Add to favourites" id="addtofavourites">
</td>
<td>
</td>
</tr>
<tr>
<td id="ajaxfavourites" valign="top">
<? include site_url('myfavourites/ajaxview'); ?>
</td>
<td id="ajaxquickbasket" valign="top">
<? include site_url('mybasket/ajaxquickview'); ?>
</td>
</tr>
</table>
Any ideas? thanks in advance.