You can read cookie in Javascript (if it's the same domain), but remind : cookie is really something without security.

What is the prupose ?

Denis

Denis,

Thank you very much!

Then is it possible for me to use javascripte to read session in the start.pstpl? if yes, how? thanks again.

In more details:

If there is a session variable exampleid. In some case it's value is 99999999, other 99999998.

In the startpage.pstpl, I would like to check the value is 99999999 or 99999998. If it is 999999, alert and jump to a customer page (such as www.example.com/example/login.php). If it is 99999998, go ahead and pass 9999998 to a question in the survey.