Posted by Erlend Klakegg Bergheim on 10/12/66 11:38
Mike skrev:
> I see. So to pass the ID to the next page I now need to add PHPSESSID=
> in to the script as follows...
>
> <?php
> session_start();
> $_SESSION[auth] = "Test message";
> ?>
> <a href="page2.php?PHPSESSID=<?php echo
> $_COOKIE[ini_get("session.name")]; ?>">Page2</a>
>
> Is that correct??
>
> So why did my original script line..
>
> <a href="page2.php?<?php echo SID; ?>">Page2</a>
>
> not produce the ID string?
>
> Many Thanks
I don't know why it doesn't work. You will find the constant at <URL:
http://www.php.net/session > when looking for "Predefined Constants".
Maybe that can give you a hint.
--
Vennlig hilsen
Erlend Klakegg Bergheim
Navigation:
[Reply to this message]
|