CodeIgniter Forums

Full Version: Accessing the CSRF token post variable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]rawsted[/eluser]
How come the ci_csrf_token post variable is undefined?

I'm trying to do a cross-site form post, and to ensure the relay return is valid I'm passing along the CSRF token, except it's null/blank. How can I directly access the token for a given generated form?

El Forum

[eluser]NeoArc[/eluser]
Hmm, try _csrf_token_name

http://ellislab.com/forums/viewthread/185926/

El Forum

[eluser]rawsted[/eluser]
Dang, thanks.