Reply to Re: why a session-based program behaves different on different computers

Your name:

Reply:


Posted by Vince Morgan on 04/24/07 15:12

"Steve" <no.one@example.com> wrote in message
news:64oXh.2559$os3.2107@newsfe12.lga...
> | What if one were to export the session data at intervals into files, or
> | overwrite a particular file at each step. The file/files being named in
a
> | fashion that identifies their place in a hierachy, say a combination of
> | session id & time.
>
> i think you're leaning towards 'magic' here using files with names packed
> with meaning. i don't think this would do anything for you. 1) because you
> can do all of this in sessions without the additional work. 2)

It seemed that the OP was loosing data within the session array, but I don't
see that he ever mentioned loosing the session id?
Did I miss something there?
The file dump idea occured to me when the OP first described the problem.

>if there is a
> loss of a session, you're in the same boat as the rest of the alternatives
> presented. 3) except you're using files to store the data, is that
> significantly different than using another external storage
> facility...like...a db?
>
Nope, not at all, it's that I considered it easier to simply reload
exported data directly from a file rather than reqeery it on such a failure.
Though I realize it's worthless if the session id is also lost.
I hadn't considered using a db in my planning, at least not in this context,
until I had read these posts. I've been designing classes to hold the data
in the session var, then I read the post and wack!!
It freaked me out actualy, as I am currently in the process of redesigning a
site that involves ecommerce, and can involve various steps, going back and
forth. Yes, I am well aware of the fact that I am not at all experienced
enough in this technology to be doing this, but I've got the job due to
previous work, and I have warned them, without effect ;) I'm also
detirmined to do it correctly, whatever lack of sleep that may involve. And
I do have a few months to get my act together.
The db solution is certainly a viable alternative, and if a session var can
loose data then it is certainly superior to my original direction.
Vince

[Back to original 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

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