Reply to Re: [PHP] noob need help for sessions

Your name:

Reply:


Posted by Josip Dzolonga on 04/08/05 01:16

Jeff Weinberger wrote:

> I am well warned about the dangers of passing session IDs in URLs, but
> for my purposes, there is no sensitive data in the session, and I want
> to be able to do it only in the case where the visitor does not accept
> cookies.

Better for you to be warned :-)session_start();

> session_register("abc");
> $abc = "Test Session String";
>
Replace it with $_SESSION['abc'] = 'The Session String';

> page2.php:
>
> print $abc;

That will work only with register_globals set to TRUE, so better replace
it with

print($_SERVER['abc']);

I also suggest you to take a look here [ http://www.php.net/session ]
and here [ http://www.php.net/session ].

Hope this helps,

--
Josip Dzolonga
http://josip.dotgeek.org

jdzolonga[at]gmail.com

[Back to original 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

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