You are here: Re: Session losing variables? « PHP Programming Language « IT news, forums, messages
Re: Session losing variables?

Posted by Rik on 08/23/06 11:28

Schraalhans Keukenmeester wrote:
> Rik wrote:
>> I don't really see anything wrong with your code. Have you been able
>> to check with ths users experiencing problems:
>> - What value the $_SESSION variable was?
>> - Wether they've disabled cookies?
>> - What happens if you just test wether a session works for them at
>> all atm?
>>
> 1. I have (alas) not recorded the session variable itself in the logs

Too bad, it seems to me a problem with continuing a session.

> 2 I have not been able to check (sofar) whether or not these users
> have cookies disabled/enabled. I gather from your question cookies
> are a MUST with sessions? No alternatives? At least one of them (them
> being the
> users, not the sessions) is imho way too ignorant to even be able to
> disable cookies let alone know why she would/should, leading me to
> believe she has everything enabled and wide open on her box. Is it
> feasible some popular firewall-like thingy blocks cookies?

Alternatives for cookies is offcourse a POST/GET variable. Since you're
using a form though, be sure you've configured PHP correctly to 'magically'
add the POST/GET variable so he user can continue his session and doesn't
start a new one over and over again.

> 3. The problem seems to recur every now and then. Most -if not all-
> HAVE been able to use the form properly in the past, just suddenly
> they bump
> into trouble, and once they do, each consecutive run immediately
> following their first failed attempt shows the same loss of data.

What if you unset($_SESSION);session_destroy(); after a failure and then
let them retry?

> All form data is utterly standard, just alphanumerical, no weirdly
> formatted or otherwise dubious/suspect entries.

Well, then that probably isn't the problem.

Could you enable some kind of logging, to check wether the users
experiencing problems can continue sessions?

> Thanks sofar Rik! How rude would we be if we continued this in Dutch

Verschrikkelijk asociaal ja ;)

--
Grtz,

Rik Wasmus

 

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

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