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

SitePoint PHP Blog: Using Solarium with SOLR for Search - Setup

PHPBuilder.com: Create a Unit Conversion Application w/the Zend_Measure Component

Chris Shiflett\'s Blog: Storing Sessions in a Database

Evert Pot's Blog: Creating Streams from Strings in PHP

Zend Developer Zone: Aaron Wormus Talks about his Session at ZendCon and Migrating to PHP 5


Community Events





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


framework developer language release list experience unittest testing configure series threedevsandamaybe podcast code opinion refactor laravel install interview community introduction

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