Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
content handlers, sessions and cookies
#1
Without a lot of doco, everything becomes a problem. If these questions are already covered anywhere, can someone please point me there? -

1) I can see a new session created on every new request to a content handler, but at the same time, no cookie is being set. I would have thought the IW cookie should be set automatically to match the Session, so if a content handler is called 1,000 times, it would not leave 1,000 sessions behind. I'm creating content handlers with:
          CanStartSession := True;
          RequiresSessionStart := False;

Are there any tricks to it, or would session handling need to be coded from scratch, if needed? Because without this, what good are these ephemeral sessions anyway?

2) Also. can a handler be defined for a wildcard path, like /do/*? - to respond on both /do/this and /do/that?

Or defined for /do, so that requests for /do/something trigger it? - because from what I see, it's not happening.

Or can content handlers be released and recreated at runtime, i.e.: in a form event? - because I need to listen on a number of configurable paths, which may change from time to time and I would not want to restart the service every time this list changes.

3) There're AddRootHandler & AddStartHandler methods there as well. What do they do / what are they for?
Reply
#2
I could find that 2) only /path/*.ext & a single * have been implemented, but not /path/* - I think that would be a good useful thing to add. I know I could do /do?this instead, but I like /do/this syntax better...

And 3) these are very specific cases, so they probably do not apply to me anyway.

So, the biggest issue for me is 1)...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)