|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
use lock and unlock, or not
I have a single asp page that interacts with the client via the post method. Four arrays are created and passed back to the client when the form is submitted.
Question, when the form is being processed server side, should I be locking and unlocking aplication variables and arrays? or can I declare ordinary variables and arrays because its a single page? will ordinary variables get changed by multiple clients on a single page? Im confused what has to be locked down! and what does not. |
|
#2
|
|||
|
|||
|
Are the arrays created when the user access the page? Most likely the variables are session variables available only to that user.
|
|
#3
|
|||
|
|||
|
(mac65) my variables and arrays are not difined as session or application, so how does this work? Do i need to declare them as session variables for them not to be by two users at the same time, or not
|
|
#4
|
|||
|
|||
|
Are you creating variables used by the server and keeping global statistics and values. For ASP your sessions variables can be started when the user's session begins and when the user's session ends.
|
|
#5
|
|||
|
|||
|
I dont think i am since im not sure what you mean. What i am doing is like this. Form information is posted to the server, the asp would act on this information like this <% dim int Count
for intCount = 1 to 100 dosomething%> dosomething would be say, get a file and put values in an <%array%> which will be passed client side for viewing. If intCount was counting to 100 and <%array%> was being filled, and another client acessed the asp page, would intCount and <%array%> go wrong because two people were accessing and changing their data(do i have declare them as session variables or not?) |
|
#6
|
|||
|
|||
|
You are creating session variables accessible only by that client.
|
|
#7
|
|||
|
|||
|
Great, this has cleared it up. Thanks for everything
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > use lock and unlock, or not |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|