arst06d
Programmer
- Nov 29, 2002
- 324
Hi
I want to use the sessionid as part of a filename. On pageload, I check to see if that file exists - if not copy a template file and name it with the sessionid.
I'm using Web Developer Express 2005 on XP Pro sp2.
The above code always seems to create a new file. I thought sessionid was static during the life of the session - this indicates that it changes between postbacks.
Can someone please advise on this?
I want to use the sessionid as part of a filename. On pageload, I check to see if that file exists - if not copy a template file and name it with the sessionid.
Code:
Dim fileExists As Boolean
fileExists = My.Computer.FileSystem.FileExists("Session.SessionID & ".xml")
If fileExists Then
'use it
Else
'create it
My.Computer.FileSystem.CopyFile("BACSPaymentTemplate.xml", "Session.SessionID & ".xml")
End If
I'm using Web Developer Express 2005 on XP Pro sp2.
The above code always seems to create a new file. I thought sessionid was static during the life of the session - this indicates that it changes between postbacks.
Can someone please advise on this?