Cookie and/or Session variable

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/69045?pagenum=1
04 November 2025, 14:38

Topic


TastyNutz
Cookie and/or Session variable
20 November 2009, 01:10


I have a snowfall script that some users dislike. I want to have a checkbox to allow users to turn the snowfall on or off. And I want the choice to hold for all pages, and be remembered when users return later.
Can anyone help?

 

Replies ...


Etymon
20 November 2009, 02:57


You know when you edit your profile and are given this choice ... View Signatures in Posts?: ... ?
I would make a new option in the edit member profile area by copying that "View Signatures in Posts?:" code as it is applied throughout the forum already. I would rework the copy to cater to your snowfall script. Then I would apply the new variable where ever you present the snowfall script in your site.
TastyNutz
20 November 2009, 10:37


I considered that, but I was really hoping to avoid modifying the database.
Etymon
20 November 2009, 11:33


Well, do a search through the code for Response.Cookies to see how cookies are done and then do a duplicate of that code.
© 2000-2021 Snitz™ Communications