Session Problem

Discussion in 'PHP' started by greatlogix, Jan 8, 2008.

  1. #1
    Normally when we click on a link all session variables are transfered to new page. Right?

    I am getting strange problem for the first time. I am not getting session variables in next page.

    To test this I Created a file which have following code
    <? $_SESSION['abc'] = 'USA'; print_r($_SESSION); ?>
    PHP:
    Output is Array ( [abc] => USA )
    It's perfect. After this I add href for second page which has following line of code
    <?  print_r($_SESSION); ?>
    PHP:
    It's not printing anything. Why? :confused:

    I have check server setting using phpinfo(); and I have found one new thing i.e

    Registered serializer handlers php php_binary wddx

    Is it creating problem or something else.

    Please help. Thanks
     
    greatlogix, Jan 8, 2008 IP
  2. greatlogix

    greatlogix Active Member

    Messages:
    664
    Likes Received:
    13
    Best Answers:
    1
    Trophy Points:
    85
    #2
    I got the hosting company reply.
    They have corrected it.

    Thread Closed. Thanks for your time.
     
    greatlogix, Jan 8, 2008 IP