you can use sessions, but you are not forced to.
by sessions you can do like this:
when a sessions starts you can set a propery of session to 'true'
Session_Start(...)
{
Session["isFirstTime"] = true;
}
and in your pages check that if Session["isFirstTime"] is true then set background of page to Green and then set Session["isFirstTime"] to false.
and for next times check that if Session["isFirstTime"] is false, then background of page should be red.
|