Session variable

Results 1 to 2 of 2

Thread: Session variable

  1. #1
    Join Date
    Dec 1969

    Default Session variable

    Hello,<BR><BR>Multiple machines are refreshing a certain page in fixed time interval and they have identical session variable name with different values for different machines. I saw the mixture of values coming to the clients. Can you please help me how to correct this? I used setTimeout for 2 seconds interval to refresh the page. Server sends the value of the identical variable to the client. I expected a unique value for each session.<BR><BR>Thank you in advance.<BR>Sammy<BR><BR><BR><BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default It is *YOUR CODE* that...

    ...assigns values to session variables, so YOU would have to write code that would guarantee unique values.<BR><BR>If all you want is a unique *identifier*, though, then you don&#039;t even need a session variable: Just use<BR> Session.SessionID<BR>which is an integer number guaranteed to be unique per user machine.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts