News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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

Web Development Blog: PHP Mail Scripts using SMTP transport, a guide for beginners

DevShed: Defining Some Custom PHP Functions with Yahoo Web Services

Christian Schaefer's Blog: Using PHP Web Scraper Goutte in a Console Task in a Silex project

Zend Developer Zone: Zip-it or DIY Tar-balls

Anson Cheung's Blog: Create nodes in eZ Publish using PHP


Community Events

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


release framework php7 example performance api laravel podcast introduction interview application symfony2 voicesoftheelephpant community configure series conference language opinion part2

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