View Single Post
  #27 (permalink)  
Old 05-31-2007, 01:45 PM
Restless Restless is offline
Starter Member
 
Posts: 2
Default TimeStamp Issue

Close but not quite there...

I'm trying to employ the single sign on method described in the preauth.txt sample, but I need to do it using .Net. I've managed to create the parameter string, but I'm getting errors re: the time stamp being too old.


How do you calculate the timestamp in millisecond? Sounds like others have just copied and pasted the java code into their applications and its worked. But how is that? Their current timestamp would be different, right? From the example, it looks like the timestamp is hardcoded to 1135280708088, but how is that possible. Maybe I don't understand the concept of the timestamp.

I'm calculating is as follows:

timestamp = DateTime.Now.Hour * 60 * 60 * 1000 + DateTime.Now.Minute * 60 * 1000 + DateTime.Now.Second * 1000 + DateTime.Now.Millisecond

I must be missing something. Help!!!
Reply With Quote