You are here: Re: Sessions « All PHP « IT news, forums, messages
Re: Sessions

Posted by Erlend Klakegg Bergheim on 10/10/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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация