SitePoint Sponsor

User Tag List

View Poll Results: how secure?

Voters
4. You may not vote on this poll
  • secure

    2 50.00%
  • not secure

    2 50.00%
Results 1 to 2 of 2
  1. #1
    play of mind Ernie1's Avatar
    Join Date
    Sep 2005
    Posts
    1,252
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How secure is random generated session_id?

    ok I have created a function to generate the session_id, i would like to know how secure is random generated session_id();
    PHP Code:
    function generateSID(){
       
    $randlen 14;
       
    $randval "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
       
    $random "";
       for (
    $i 1$i <= $randlen$i++){
        
    $random .= substr($randvalrand(0,(strlen($randval) - 1)), 1);
       }
       return 
    $random;
    }
    session_id(generateSID());
    session_start(); 

  2. #2
    play of mind Ernie1's Avatar
    Join Date
    Sep 2005
    Posts
    1,252
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    any ideas?


Bookmarks

Posting Permissions

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