From: Tom Sawyer Date: 2003-01-08T10:43:39+09:00 Subject: Re: $cgi = CGI.new w/ mod_ruby dangerous or acceptable? On Tuesday 07 January 2003 06:24 pm, Gavin Sinclair wrote: > Singleton pattern ah yes, that clears it up a bit. that would work fine if... my fear is one of multiple users accessing my app and winding up with one anothers cgi instance, so there's where i have been unclear: each user will receive there own space. yes? no sharing globals or class variables (@@s) between them? i imagine that must be the case, though i do not know how mod_ruby handles this (based on requesting ip?) yet still persisting these for a single user. anyway i just want to be sure that implemenating a Singleton pattern for cgi will not cause any unforseen problems. thanks Gavin, tom sawyer, aka transami transami@transami.net .''. .''. . *''* :_\/_: . :_\/_: _\(/_ .:.*_\/_* : /\ : .'.:.'. .''.: /\ : ./)\ ':'* /\ * : '..'. -=:o:=- :_\/_:'.:::. | ' *''* * '.\'/.' _\(/_'.':'.' : /\ : ::::: = *_\/_* -= o =- /)\ ' * '..' ':::' === * /\ * .'/.\'. '._____ * | *..* : |. |' .---"| * | _ .--'| || | _| | * | .-'| __ | | | || | .-----. | |' | || | | | | | || | ___' ' /"\ | '-."". '-' '-.' '` |_. ------------------------------------------------------------