Bowser Posted February 25, 2006 Share Posted February 25, 2006 how do i create something like index.php?session=random number Quote Link to comment 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 :] Quote Link to comment 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... Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.