Welcome Guest, Not a member yet? Register   Sign In
Using CI_Session outside CI
#2

[eluser]TheFuzzy0ne[/eluser]
I think I'd like to see a way of accessing the functionality of CodeIgniter without having to load a controller.

If the data is encrypted, you can decrypt is easily enough by using the encryption key that your specified in your configuration file. In you situation, I think I would create a custom Session class for the forum that works in a similar fashion to the CodeIgniter Session class. It would know how to decrypt the cookie and how to retrieve values. You could simply start with the original CodeIgniter Session class, and fix the bits that reference the CI super object.


Messages In This Thread
Using CI_Session outside CI - by El Forum - 02-13-2009, 10:19 PM
Using CI_Session outside CI - by El Forum - 02-14-2009, 04:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB