Page 1 of 1

persistant user preferences any advive?

Posted: Sun Jan 07, 2007 3:40 pm
by coolmoon
Hello all,

I am still new to php and looking for advice on saving user preferences
I am working on a CMS and would like to save user preferences such as
table sort order, pagnation # of page defaults, and so on. I am using
sessions to track users and store some temporary variables.

wondering which would be best saving serverside and parsing file into
variables , setting cookies or somthing else

using php 4.3 and mysql


Thanks

coolmoon

Posted: Sun Jan 07, 2007 4:05 pm
by Kieran Huggins
If you have "users" with logins and all the rest, use server-side storage like a DB or a per-user include file and the var_export() function.

If not, I would just use cookies ($_COOKIE)

Posted: Sun Jan 07, 2007 4:46 pm
by alex.barylski
XML or INI files?

Posted: Sun Jan 07, 2007 5:08 pm
by coolmoon
Thanks for the reply

will play with the var_export() function and see what I can do with it

coolmoon