Re: question about CL-HTTP
Martin Simmons <[email protected]> Tue, 27 Jan 2004 14:41:34 GMT
| Newsgroups | gmane.lisp.cl-http |
|---|---|
| Message-ID | <[email protected]> |
>>>>> On Tue, 27 Jan 2004 11:48:59 +0100, =?iso-8859-1?B?Q3Jpc3RpbmEgR2VtYSBNdfFveiBNYXlh?= <[email protected]> said: Cristina> Hello!! Cristina> I'm doing an application (Criminal law Course) in CL-HTTP under Cristina> LispWork of Harlequin, but i've a problem. I'm going to show you part of the Cristina> code. I 've a html page, siidepe.html Cristina> ........... Cristina> <FORM ACTION="curso.html" METHOD="POST"> Cristina> user<INPUT TYPE="text" NAME="NOMBRE" SIZE="10" VALUE=""> Cristina> password<INPUT TYPE="passwd" NAME="NOMBRE" SIZE="10" VALUE=""> Cristina> ...... Cristina> And when i submitted this form, the response function read from a Cristina> file which contain information of the user that do the course (the last page Cristina> visited, what they know about each topic,the pages that are known for them), Cristina> and this information is saved in global variables Cristina> (usuario,clave,pagnum,pagin,tema1,..).And i think this don't work when there Cristina> are 2 o more users using the course. So, can you advice me how can i do what Cristina> i want?. Cristina> Note: I 've to use the file, to save the information of the users. CL-HTTP is multithreaded, so different threads might update the file simultaneously. Perhaps you need to use a lock to control access to the file? See the macros MP:WITH-LOCK or CLIM-SYS:WITH-LOCK-HELD. __Martin