Welcome Guest, Not a member yet? Register   Sign In
Access Session Data in Security Class
#1

[eluser]Unknown[/eluser]
Hi,

I've been looking through the forums but have had no luck in finding an answer to my problem. I am looking into enabling the CSRF tokens for forms. Instead of using the current way of generating the tokens, randomly and storing them in a cookie, I am looking at using the current session ID as the token, since it will be more scalable across the current platform. My issue is that I cannot get access to the session data in an overridden security class file. I have tried instantiating the sessions helper in both the constructor and the function itself with no luck, including trying to grab "&getinstance;" of ci.

Any help is greatly appreciated.

Chris




Theme © iAndrew 2016 - Forum software by © MyBB