Delivering the best Add-Ons in more than 37 languages.

中文(简体), English, हिन्दी/हिंदी, Español/Castellano, العربية, Русский язык, Français, 中文 (台灣), বাংলা, Bahasa Indonesia, اردو, Português, Deutsch, Bahasa Melayu (بهاس ملايو‎), 日本語 (にほんご), فارسی, Italiano, తెలుగు, Türkçe, ગુજરાતી, Język polski/polszczyzna, Tiếng Việt, ಕನ್ನಡ, Українська мова, ไทย
PHP Scripts / Miscellaneous

PHP Secure Stateless Cookies Class

— Add-On to

Subscribe to our feed to stay up to date!

New! Follow us as you want it!

PHP Secure Stateless Cookies Class - CodeCanyon Item for Sale


Ad: Bluehost hosting

The PHP Secure Stateless Cookies Class lets you create a system that authenticates with secure cookies instead of using PHP sessions. Furthermore, it allows for:

  1. Secure password hashing
  2. Secure cookie hashing
  3. Automatically updates md5 passwords
  4. Can interpret (Non-Portable) PHPass hashes without changing your current user database


Check out the documentation for code samples and usage.


There is quite a bit of discussion between stateful and stateless. For a better understanding of stateless cookies and stateless PHP applications, consider reading the article Hardened Stateless Session Cookies (PDF) by Steven J. Murdoch.


  • (12.05.2012) v1.0
    • Release version
  • (12.06.2012) v1.1
    • Added a much more secure salting algorithm
    • Updated properties to follow OOP standard
    • Added verifyAuth as security measure
  • (02.08.2014) v1.2
    • Updated encryption method
    • Added _switchUserTo method
    • Added _switchUserBack method
    • Added _setcookie method
    • Added remember me cookie

Other components in this categoryAll components of this author
CommentsFrequently asked questions and answers


6 December 12

Last Update:
8 February 14

Files Included:
JavaScript JS, HTML, CSS, PHP, SQL

Software Version:
PHP 5.3, MySQL 5.x


eCommerce, eCommerce, All Items, authentication, cookies, security, stateless