View Single Post
  #5 (permalink)  
Old August 30th, 2004, 03:00 PM
Annoyamouse Annoyamouse is offline
Authorized User
 
Join Date: Aug 2004
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Richard.

I really appreciate your help on this, and I have tried your example on this link
you gave me: http://p2p.wrox.com/topic.asp?TOPIC_ID=17110

Firstpage.php:
<?php
    session_start();


    $_SESSION['foo'] = 'Hello, world!';

    echo "<a href='other_page.php?sid=".session_id()."'>Next page...</a>";
?>

Otherpage.php:
<?php
    //other_page.php
    session_start();

    echo $_SESSION['foo'];
?>

However ...

What I did was copy and pasted the code into two seperate pages. I've FTP'd them to
the server itself, and on the second page, the session variable which should have
'hello world' didn't show up.

I've already talked to the admin of the webserver and he verified the session variables
are activated and working properly. But what I get is a blank second page even with sending
the session_id along ...

Any suggestions?

Reply With Quote