The following warnings occurred: | |||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
|
Custom variables pagewide without cookies? - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: Custom variables pagewide without cookies? (/showthread.php?tid=4860) |
Custom variables pagewide without cookies? - retrofan - 2013-06-18 Hi, I'm not sure how to describe... In this special case I want to have one or more pagewide accessable fields; for example called "myCustomCssFile='normalstyle.css'" which I can use in my templates. After clicking a button "Toggle Size" I want to change this variable to "myCustomCssFile='bigstyle.css'", reload the page and so use the other css file for the template. After changing to another page, the field must stay. So I think it must be forwarded in the GET parameters, also in user friendly urls somehow, so it has to be appended to every site-intern link. At this moment, I make this functionality at client side using jquery and cookies, but thats not really stable, because of caching problems for e.g. I hope someone understood what I want to say... Sorry... Is there already a mechanism included which makes me able to use custom GET-Parameters? RE: Custom variables pagewide without cookies? - shawn_a - 2013-06-18 You could use sessions. RE: Custom variables pagewide without cookies? - retrofan - 2013-06-19 (2013-06-18, 23:09:41)shawn_a Wrote: You could use sessions. Hmm, okay - works fine. But sadly not with cookies full turned off (it should, but it doesnt). On the other hand: Who turns off session-cookies nowadays So I'll simply use sessions. Thank you for reminding me of their existance |