SeasideSt / Seaside

The framework for developing sophisticated web applications in Smalltalk.
MIT License
518 stars 71 forks source link

WAGsZincStreamingServerAdaptor starts a new session on every request #1317

Open pdebruic opened 2 years ago

pdebruic commented 2 years ago

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

pdebruic commented 2 years ago

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