[FX.php List] Weird session variable issue

Leo R. Lundgren leo at finalresort.org
Thu Dec 19 09:38:37 MST 2013


It's very unlikely that the data you store in your session variables is the culpruit. AFAIK you can store binary data or whatever you want, it's all serialized. The PHP manual has more info about the session storage (there are by the way different types of storage).

What you should do is debug the application source code so that you isolate the matter. Log the state of the session and its data at strategic points during the requests, so that you can tell exactly WHEN the data goes missing.

1. There are practical and resource technical limits to how much data you store, but unless you have a lot of data that's hardly relevant. How much data are you storing?
2. Again hardly relevant unless you are doing something extreme. How many variables are you storing in your session? Basically this and the former point depends mainly on the amount of memory available to PHP.
3. I'm not aware of anything out of the ordinary that you cannot store. Definately not one of those.

There's a lot of information about the things you ask about over at Google. Either case, the first thing you should do is isolate the issue so that you know where it goes wrong. Then you can start figuring out why it goes wrong.

Regards, Leo


19 dec 2013 kl. 17.14 skrev Bob Patin:

> I’ve got a site that collects a large amount of registration data from submitters; as they go through the process, I store the data in session variables, and then write it all to Filemaker at the end if their credit card is successfully charged.
> 
> For some reason, some of the records come up missing data—sometimes a few fields, sometimes almost all fields. I don’t destroy their session until the final step, *after* the FileMaker records are generated.
> 
> We’re seeing this in Internet Explorer 8 and 9, and maybe other browser versions, but right now it seems to be mainly in IE. 
> 
> Question: Since I’m storing a ton of values in session variables, I’m beginning to wonder if one or more variables are storing a character that could be messing things up. I don’t think there are restricted characters in session variables, but here are some questions:
> 
> 1. Is there a limit to how much text could be stored in a set of 60+ session variables?
> 2. Is there a limit to the # of session variables that can be used in one session? If so, how is this determined?
> 3. Are there any restricted characters that must NOT be stored in a session variable? For example, ampersand, apostrophe, etc.?
> 
> This issue is driving us crazy; any help would be greatly appreciated.
> 
> Thanks,
> 
> Bob Patin
> Longterm Solutions
> bob at longtermsolutions.com
> 615-333-6858
> FileMaker 9, 10, 11 & 12 Certified Developer
> http://www.longtermsolutions.com
> -
> iChat: bobpatin at me.com
> Twitter: bobpatin
>> FileMaker Consulting 
> FileMaker Hosting for all versions of FileMaker
> PHP • Full email services • Free DNS hosting • Colocation • Consulting
> 
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



-|

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131219/ba662d21/attachment-0001.html


More information about the FX.php_List mailing list