You are here: Losing one session vatiable, rest are still intact (repost) « PHP Programming Language « IT news, forums, messages
Losing one session vatiable, rest are still intact (repost)

Posted by Jimmy Reds on 03/14/06 12:54

Hi,

Sorry if this appears twice but I post through Google Groups and it had
a funny 5 minutes and didn't appear to post this message the first
time.

I am setting session variables on a page then doing a header/location
redirect to a second page however I am losing one of my session
variables. Not all of them, just one.

Here are some details/comments:

I am doing a session_start() on ALL of my pages, right at the top of
each page

I have tried session_write_close() before doing the redirect

A print_r of $_SESSION on the first page shows all of the variables
intact before the redirect is attempted

There is nothing in the code or in an included file that
unsets/destroys/overwrites the session variable.

The code that sets the variable is not within an output buffer

PHP version 4.3.1, Apache version 2.0.5.2 running on Windows 2000

Surely this shouldn't happen? If I was losing the entire session that
would kind of be understandable but losing ONE variable out of about 10
or 11 is very strange.

Has anyone experienced this before or can anyone offer an explanation?
Let me know if you need any further details.

Thanks for any advice offered.

Jimmy.

 

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

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