Jump to content

Archived

This topic is now archived and is closed to further replies.

Bowser

Hey how can i make a page do this

Recommended Posts

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 :]

Share this post


Link to post
Share on other sites
This could be a good thing for email verivication..

clicking a link and activating acount!!!

im gonna try this...

Share this post


Link to post
Share on other sites
usually php comes with a hidden session id, as far as i know it the variable is $PHPSESSID
comes up one my site somethimes
http://mysticbattles.freehostia.com/index.php?PHPSESSID=936beaf3f53a8856b6c8aeb80876490c

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.