[eluser]Volder[/eluser]
Hello,
I want to overwrite the core Session library, which is in
system/libraries/Session.php
So for this purpose I put my Session.php file into system/application/libraries/
I'm using CI_Session class name in this, so that the core Session is overwritten. Until this everything is fine. New session library is used.
The next step what I would like to have is to amend some methods in the new Session library, but as this file is an external for me (developped by third paries) I want to put my fixes separately, so that it would be easily compatible with future releases.
I create MY_Session.php in system/application/libraries/ where I put the needed functions.
But after this - the session class which is loaded is from system/libraries/Session.php, but not from system/application/libraries/Session.php
Is there any way to achieve what I would like without putting fixes directly to system/application/libraries/Session.php?