Session_register problem

Sharky Forums


Results 1 to 6 of 6

Thread: Session_register problem

Threaded View

  1. #1
    Ex-*** kid A's Avatar
    Join Date
    Sep 2000
    Location
    Norway
    Posts
    5,322

    Session_register problem

    For some reason this code does not work as intended:

    PHP Code:
    $kundetype htmlspecialcharsstripslashes($row['btype']));
            
    $b_id htmlspecialcharsstripslashes($row['brukerid']));        
            if (
    $num_results 0) {            
                
    session_register("innlogget""tilgang""sessbrukerid");
                
    $innlogget $navn;
                
    $tilgang $kundetype;
                
    $sessbrukerid $b_id;                        
            } 
    The $innlogget and $tilgang variables are set with the right value, but somehow $sessbrukerid is set the same value as $tilgang ($kundetype).

    Why does this happen? I've made sure to deregister all session variables one by one and destroy the session upon logout, but it still happens the next time I log in.
    Last edited by kid A; 08-01-2003 at 08:31 AM.
    Now listening to various rock and metal
    143rd member to join Sharkyforums.

Posting Permissions

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