Quantcast
Channel: Silk Performer
Viewing all articles
Browse latest Browse all 4084

Wiki Page: How do I implement session handling in BDL based on a Javascript timestamp?

$
0
0
It is fairly common for web applications to use Javascript timestamps for session handling, for timeouts etc. This is done on the web page using the Javascript GetTime() function which returns the number of milliseconds that have elapsed since midnight 1/1/1970. Since the value of the timestamp does not occur anywhere in the returned content from the server, it will be hard-coded into the recorded script with something like the following: FORM_NAME "TS" := "1130645944998"; // Here"s the timestamp This can be implemented in BDL using the function GetTimeStamp as follows: FORM_NAME "TS" := GetTimeStamp(TIMESTAMP_IN_MS); // "1130645944998"; This may need to be adapted to the particular needs of a given application. For example, if the same timestamp is reused at a later point it should be set in a variable with something similar to the following: sTimeStamp := GetTimeStamp(TIMESTAMP_IN_MS); --- FORM_NAME1 "TS" := sTimeStamp; // "1130645944998"; FORM_NAME2 "TS" := sTimeStamp; // "1130645944998"; The function GetTimeStamp() was introduced in SilkPerformer 6.0. Old KB# 19369

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>