[thelist] deleting php vars

Hassan Schroeder hassan at webtuitive.com
Mon Nov 3 12:56:20 CST 2003


Paul Bennett wrote:

> Other than that you could enter the users session id (you can append 
> these to the url if you want to get all the non-js browsers) in a db 
> table when the code is run and then at the beginning of your script 
> check if the id already has an entry in the table. If it does you now 
> not to run the code.

Just make the sessionId field in the database UNIQUE.

An attempt to insert it again will fail; catch that exception and
return an appropriate response.

-- 
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.





More information about the thelist mailing list