SeasideSt / Seaside

The framework for developing sophisticated web applications in Smalltalk.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WAGsZincStreamingServerAdaptor starts a new session on every request

pdebruic opened this issue · comments

Load Seaside in GS, along with the Gs Application Tools

Change ZnSeasideNewGemServer>>#serverClass to

serverClass
    ^WAGsZincStreamingServerAdaptor

define WAGsZincStreamingServerAdaptor>>#defaultZnServer as

defaultZnServer
     ^ ZnGemServerManagingMultiThreadedServer on: self port

in tODE start the server with

mount @/sys/stone/dirs/Seaside3/tode /home seaside
/home/seaside/gemServer --register=seaside --type=zinc --port=8001
/home/seaside/gemServer --start=seaside 

in a browser open 127.0.0.1:8001 & see the seaside welcome screen

click the link for the Counter

instead of seeing the Counter, see the Seaside welcome screen.

Changing ZnSeasideNewGemServer>>#serverClass back to WAZincNewGemServerAdaptor and everything works fine

Not every request, just HTML requests. Not CSS/images/JS file library requests.