Re: multithreading http server

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 01/11/2014 10:11 PM, Josef Frydl wrote:
> I have completed and tested http_server application for single user/
> thread. Application asks  the user couple of questions.  Eaqch in
> different screen. Since the next question is based on processing
> current information But when I changed to multi threaded application
> by using :- use_module(library(http/thread_httpd)), each screen has
> different session ID, thus I can not collect informations using
> http_session_dat, http_session_assert, http_session_retract.
> 
> Please advice, how to have a session per user. I run on Mac OS X ,
> Snow Leopard with stable 6.6 version

Session management is based on (temporary) cookies.  It might depend
on your browser or browser settings whether or not temporary cookies
are shared between windows?  If session management doesn't help I
guess you should have some login window that allows you to associate
several sessions with the same user.

	Cheers --- Jan

> Thanks Josef Frydl _______________________________________________ 
> SWI-Prolog mailing list [email protected] 
> https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.