Hi!

I found that calling session_start() before doing anything else seems to be the only way to make that work reliably. I make sure that it is the first thing a script executes.

Also, just as a test, add this at the top of the script
<pre>
<?php
session_start();
print_r($_SESSION);
exit;
?>
</pre>

If that doesn't show any results something is really wrong and you may want to take a look at the error logs. If you are looking for specific keys, did you write anything to the session? And watch out for typos. I can't tell you how often I was about to jump behind a bus just because I missed a friggin "n" or "e".

David

anthony wlodarski wrote:
The better question is how do you build it currently? Without that I can't figure out how it might be breaking. Also don't forget to call session_start(); otherwise $_SESSION won't resume where it left off.

-Anthony

_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to