Results 1 to 4 of 4

Thread: Temporary ID

  1. #1

    Thread Starter
    Hyperactive Member samsyl's Avatar
    Join Date
    Jun 2001
    Location
    London
    Posts
    338

    Temporary ID

    i want to make an temporary ID for each visitor of my website. when anyone enter my website i want to make an temporary ID for this user and store some data to a table using this ID. my website has not any login system.

    is it possible or any different idea?

  2. #2
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: Temporary ID

    you can use sessions or cookies to store temporary information, and unless you plan on keeping the information then you don't need to use a database to store the information. if you're logging it though, you can, i suppose.
    Like Archer? Check out some Sterling Archer quotes.

  3. #3
    Addicted Member mfurqan's Avatar
    Join Date
    Oct 2005
    Location
    Pakistan
    Posts
    176

    Re: Temporary ID

    well..

    Assalam Allykum and Eid Mubarak

    You can try :

    PHP Code:
    $TempID md5(uniqid(rand(), true)); 
    Then Store $TempID in Database, Cookies, Sessions or whatever...
    Muhammad Furqan Attari.

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Temporary ID

    session_id()

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width