HandleSpecialURL Access Session using App.SessionWithIdentifier

I wonder if it’s valid to get the right instance of the WebSession without WebSessionContext.

For example in The App.HandleSpecialURL event:

App.SessionWithIdentifier("ABCDEFG123456789ABCDEFG").Title = "Some title"

Is the above code safe and valid in terms of usage?
By default we need a WebSessionContext to use the right session, but the above function would return “the right” session?
@Greg O’Lone might know perhaps.

You are not even sure there is a session when HandleURL executes.

Perhaps you can use WebsessionContext to access a web session if it exists
http://documentation.xojo.com/index.php/WebSessionContext

[quote=365863:@Michel Bujardet]You are not even sure there is a session when HandleURL executes.

Perhaps you can use WebsessionContext to access a web session if it exists
http://documentation.xojo.com/index.php/WebSessionContext[/quote]

@Michel Bujardet that doesn’t answer my question. I’m using WebSessionContext now, i just want to know from an engineer if it could be used that way safely. As App.SessionWithIdentifier might be Nil or not but it does allow to access the properties.

It’s just because i’m curious why i’m asking it.

You must use a WebSessionContext if you Event want to just set control properties. The underlying framework relies on this to work correctly.