[eluser]LoRdCoStE[/eluser]
Hi, I want to extend the input library, so I make MY_Input.php under application/library
In this class I need to use session, and I want my library to be compatible with both standard session and database session.
So I need to use $ci->session but I can't get it work because I think that the function get_instance is not already there when my class is initialized so:
Code:
var ci;
...
$ci =& get_instance()
$ci->session
is not working.
How can I do that?
I need access to session (both normal and db) so no $_SESSION.
If this is absolutely impossible there are problem if I use just one session var (directly) $_SESSION['my_var'] also if database session are enable?
I mean does ci unset that var or just don't call session_start()?
Thanks for your help.