Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Serve a seaside page/component without creating a session

We have a Seaside Application in place that creates a session and handles user login etc. So we're happy with that.

But we'd like to have the ability to serve a few pages using a fixed url. This is not a problem using #initialRequest: and delegating to a certain component depending on the url. What I'd like to avoid, however, is that some of these pages create a new session and start up all the machinery that's coming with it.

Any ideas?

like image 586
Joachim Tuchel Avatar asked Mar 14 '26 13:03

Joachim Tuchel


1 Answers

Seaside 2

You could create a WASession (or WAMain) subclass which will be used if the request was static. Then in that session (or main) you could override those methods that do too much for your liking.

Seaside 3

You could use the new filter mechanism. If I recall correctly you can take control of the request pretty much at any time. That should give you enough leverage to do what you want.

like image 194
Max Leske Avatar answered Mar 16 '26 03:03

Max Leske