News Feed
Jobs Feed
Sections




News Archive
ITNewb.com:
Generating Session IDs and Random Passwords with PHP
June 01, 2009 @ 08:46:50

New on the ITNewb.com site today is this new tutorial looking at generating session ID numbers and random passwords for your application using functions like mt_rand and mt_srand.

Whether it's session ids, passwords or tokens in general, in the world of web development the ability to generate random alpha-numeric strings is a necessity. In this article I present a few simple yet effective PHP functions that can be used to generate strong alpha, numeric and/or special character tokens and passwords.

He gives examples of generating tokens and generating passwords, each with a custom function which he explains and gives a usage example for.

0 comments voice your opinion now!
random session tutorial password


blog comments powered by Disqus

Similar Posts

ThinkPHP Blog: Methods to Reduce the Load of Your Webserver by Caching Content

Havard Eide's Blog: Iterators

PHP-GTK Community Site: Add icons to GtkMenu

Andy Bakun's Blog: Race Conditions with Ajax and PHP Sessions

DevShed: Classes as PHP Functions


Community Events











Don't see your event here?
Let us know!


phpunit framework testing google release symfony2 rest opinion series functional community zendframework2 usergroup podcast development conference language introduction database interview

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework