I'm new to web development, so keep in mind I might not know exactly what I'm doing ;)

I'm writing a web site with vibed and registerWebInterface and got authentication done similar to the documentation using URLRouter and a SessionVar.

Now I want to add some Ajax and thought that registerRESTInterface would be up to the task. Is there any way to access the current session inside a method of my REST interface?