MyBB Community Forums
what is my_post_key - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Themes (https://community.mybb.com/forum-103.html)
+---- Forum: Theme Development (https://community.mybb.com/forum-105.html)
+---- Thread: what is my_post_key (/thread-159335.html)



what is my_post_key - poush - 2014-09-13

what is my_post_key in delete link in ajax based post deletion. is this dynamically generated each time ? and which variable has value for it ?


RE: what is my_post_key - Darth Apple - 2014-09-13

$mybb->post_key is just a variable that contains a unique key/identifier for your user account. It's used to verify that requests sent to the server are actually from you. If someone attempts to spoof a URL request but has the wrong post key, MyBB will flag an error.


RE: what is my_post_key - .m. - 2014-09-13

Edit: delayed response

headerinclude template consists of var my_post_key = "{$mybb->post_code}"; and it is a constant throughout the login session


RE: what is my_post_key - Firestryke31 - 2014-09-13

It's one thing keeping this from working:

<img src="newreply.php?tid=159335&amp;processed=1&amp;action=do_newreply&amp;subject=Lol&amp;message=Fake+Reply">