Yii Framework Forum: Token Extension - Best Way To Use - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Token Extension - Best Way To Use Rate Topic: -----

#1 User is offline   Pro Evolve 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 16-February 11

Posted 17 February 2011 - 05:51 AM

Hi everyone,

I've just installed the Token extension, the sample 'create' and 'validate' token scripts are simple enough but I'm unsure about where to place these scripts in my application...

I've used gii to create the model and crud scripts and wonder where the best place to include the create/validate scripts would be in order to validate the token on form submissions for create and update?

Any advice would be greatly appreciated.
0

#2 User is offline   synapze 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 14
  • Joined: 06-December 11

Posted 29 February 2012 - 12:55 AM

View PostPro Evolve, on 17 February 2011 - 05:51 AM, said:

Hi everyone,

I've just installed the Token extension, the sample 'create' and 'validate' token scripts are simple enough but I'm unsure about where to place these scripts in my application...

I've used gii to create the model and crud scripts and wonder where the best place to include the create/validate scripts would be in order to validate the token on form submissions for create and update?

Any advice would be greatly appreciated.


Not sure I understand why your trying to use the Token extension in your create/update actions instead of using the built-in CSRF protection features that come with Yii.

The following links might be of help.

http://www.yiiframew...csrf-protection
http://www.yiiframew...n-with-session/
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users