Jump to content


Photo

Hey how can i make a page do this


  • Please log in to reply
4 replies to this topic

#1 Bowser

Bowser
  • Members
  • Pip
  • Newbie
  • 5 posts

Posted 25 February 2006 - 10:03 PM

how do i create something like index.php?session=random number

#2 SieRobin

SieRobin
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts
  • LocationNew Jersey

Posted 26 February 2006 - 02:49 AM

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

#3 DeathStar

DeathStar
  • Members
  • PipPipPip
  • Advanced Member
  • 529 posts
  • LocationHere, there, everywhere...

Posted 03 February 2007 - 08:07 PM

This could be a good thing for email verivication..

clicking a link and activating acount!!!

im gonna try this...
PHP and MySQL Programmer.
SQL = array('MySQL', 'PostgreSQL', 'Oracle', 'mSQL', 'Microsoft SQL');

#4 only one

only one
  • Members
  • PipPipPip
  • Advanced Member
  • 437 posts
  • LocationNetherlands

Posted 03 February 2007 - 10:20 PM

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...6c8aeb80876490c
Did you let the dogs out?

http://let-dogs-out.com/

#5 JasonLewis

JasonLewis
  • Members
  • PipPipPip
  • Advanced Member
  • 3,351 posts
  • LocationVictoria, Australia

Posted 03 February 2007 - 11:30 PM

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.
Good luck with your coding.
Jason / ProjectFear / Jaysonic




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users