You are here: Re: losing session values « PHP « IT news, forums, messages
Re: losing session values

Posted by Matthew Weier O'Phinney on 05/04/05 17:27

* Angelo Zanetti <angelo@zlogic.co.za>:
> We have developed a site on a server now the client has moved the site
> to another server. Both servers run apache. However some of the Session
> variables are losing their values or their values are getting changed.
>
> We have a number of header("location: xxx.php");
> and they have the exit(); function after each statement but we are not
> sure whats causing the session problem. we also have a few javascript
> popup windows, is there anything that people can tell me from experience
> that might be causing these session variables to be altered??

Do you have trans_sid enabled? If so, and if your browser is not
accepting cookies (which may happen either because you've turned them
off or because the domain from which they appear to come does not match
the actual domain), then using redirects can be problematic because the
session ID isn't being passed between locations.

Another possibility is if there is a proxy between you and the server.
If so, you'll need to do some workarounds to keep the proxy server from
caching session IDs between requests.

--
Matthew Weier O'Phinney | WEBSITES:
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org
mailto:matthew@garden.org | http://vermontbotanical.org

 

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

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