CodeIgniter Forums

Full Version: choosing layout
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
well, i have both web & mobile layouts, and i wanna check whether is user on web or mobile, i did it, there was no problem, but, if user decided to view mobile version on desktop for example, i should check before if user changed the layout, so when he change, i should save somewhere anything which denotes it, now, where it is better to save in codeigniter? session, cookie, or any other way? which is the best?
It's not sensitive information, so either a session or a cookie would work fine.