good use of php sessions
hi, i'm getting going with PHP and am sussing out how to use sessions to store data and the likes. I'm currently saving multiple sets of data in normal XML files which i load each time i choose them. As i'm using sessions to hodl short term data i'm left thinking that i could always just keep this data active inside a session rather than using seperate files. this would give me much more flexibility in what i can do with the data, but i'm windering if this is technically a really bad idea, as effectively i'm saying i'd have one session... ever.
Would this be bad usage of a session?
I think it is a dab idea. Nothing personal :)
for data storage, consider a database.
quick, easy, and thouroghly testing.
well I think i'll forget that all and for a full blown mysql database. not sure why i didn't want one really...
but i didn't think it was a nice thing to do, thanks
|All times are GMT -5. The time now is 07:34 AM.|