how to regiester vbulletin session please ??

Discussion in 'PHP' started by crazy.works, Jun 30, 2010.

  1. #1
    Hello, i wanna register vbulletin session for username called "uername" and password called "password" from another script... so how can i do that please ??
     
    crazy.works, Jun 30, 2010 IP
  2. Triggs

    Triggs Active Member

    Messages:
    84
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #2
    Something like this;

    
    // in your main script
    session_start()
    $_SESSION['username'] = 'somename';
    $_SESSION['password'] = 'pass';
    
    // then in your other script
    session_start();
    $user = $_SESSION['username'];
    $pass = $_SESSION['password'];
    
    PHP:
    Hope this helped.

    EDIT:
    I didn't notice you had specified vBulletin.
    I'm not sure what sessions vBulletin uses, you can either use cookies or use print_r($_SESSION) to see what the session vars are.
     
    Last edited: Jun 30, 2010
    Triggs, Jun 30, 2010 IP
  3. crazy.works

    crazy.works Peon

    Messages:
    304
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    guys any help ??
     
    crazy.works, Jul 1, 2010 IP
  4. Brandon Sheley

    Brandon Sheley Illustrious Member

    Messages:
    9,721
    Likes Received:
    612
    Best Answers:
    2
    Trophy Points:
    420
    #4
    I would ask on vbulletin.com ;)
     
    Brandon Sheley, Jul 1, 2010 IP