Do not use a session for this. Because HTTP is a stateless protocol, you should avoid using the longest session. Since the user clicks on the link, it only makes sense to make this link the information you submit. Just pass whatever data you want in the url for example. as a query string parameter:
http://example.com/page_x?bgcolor=1http://example.com/page_x?bgcolor=2http://example.com/page_x?bgcolor=3
Then you can simply request this in the template page like this:
<?php
$bgcolor = $_GET['bgcolor'];
switch ($bgcolor) {
case 1:
break;
case 2:
break;
case 3:
break;
}
?>
, , , "" WordPress, . , , , WordPress.