Bowser Posted February 25, 2006 Share Posted February 25, 2006 how do i create something like index.php?session=random number Link to comment https://forums.phpfreaks.com/topic/3599-hey-how-can-i-make-a-page-do-this/ Share on other sites More sharing options...
SieRobin Posted February 26, 2006 Share Posted February 26, 2006 I'm supposing that you're making a link.. where it'd be a random number each time in your address for the session number.$snumber=rand(1, 250000);Then just put in your link.. <a href='index.php?session=$snumber'>Link</a>Depending on what number you put in the random field, it will random from 1 to whatever number you want, or 0 to whatever. Hope this helps :] Link to comment https://forums.phpfreaks.com/topic/3599-hey-how-can-i-make-a-page-do-this/#findComment-12505 Share on other sites More sharing options...
DeathStar Posted February 3, 2007 Share Posted February 3, 2007 This could be a good thing for email verivication..clicking a link and activating acount!!!im gonna try this... Link to comment https://forums.phpfreaks.com/topic/3599-hey-how-can-i-make-a-page-do-this/#findComment-176298 Share on other sites More sharing options...
only one Posted February 3, 2007 Share Posted February 3, 2007 usually php comes with a hidden session id, as far as i know it the variable is $PHPSESSIDcomes up one my site somethimeshttp://mysticbattles.freehostia.com/index.php?PHPSESSID=936beaf3f53a8856b6c8aeb80876490c Link to comment https://forums.phpfreaks.com/topic/3599-hey-how-can-i-make-a-page-do-this/#findComment-176368 Share on other sites More sharing options...
JasonLewis Posted February 3, 2007 Share Posted February 3, 2007 to call the session id you use this function: session_id()of course you must start the session (session_start()) at the top of the page. this is another good way. or you can generate a random number then use md5() on it to make it look more confusing. Link to comment https://forums.phpfreaks.com/topic/3599-hey-how-can-i-make-a-page-do-this/#findComment-176408 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.