Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llHTTPRequest and Sessions in ASP.NET

Zozo Plympton
Registered User
Join date: 26 Oct 2006
Posts: 26
12-21-2007 07:01
Hi there,

I have an ASP.NET 2.0 website and I am accessing it from SL using llHTTPRequest.
The request is posted to an URL which is handled by a custom System.Web.IHttpHandler

Seemingly the calls comming in to my handler are not creating a new Session.
They are handled outside any asp.net session (??!)
What I would like to do is to have on the server side a session for the SL object making the httpRequests.

Could somebody give me some pointers about how to do this?

Thanks,
Zozo
Wyatt Burton
Registered User
Join date: 11 Jan 2007
Posts: 49
12-21-2007 09:44
From: Zozo Plympton
Hi there,

I have an ASP.NET 2.0 website and I am accessing it from SL using llHTTPRequest.
The request is posted to an URL which is handled by a custom System.Web.IHttpHandler

Seemingly the calls comming in to my handler are not creating a new Session.
They are handled outside any asp.net session (??!)
What I would like to do is to have on the server side a session for the SL object making the httpRequests.

Could somebody give me some pointers about how to do this?

Thanks,
Zozo



Usually sessions are based on cookies or server side. If SL doesnt allow cookies (because its not a browser), then you have to tell your application in IIS to save the sessions on the server.
Zozo Plympton
Registered User
Join date: 26 Oct 2006
Posts: 26
12-21-2007 10:21
I've got it.
Yoy have to use coockieless sessions and have your IHttpHandler also implenent IRequiresSessionState.
Very simple indeed. (oh well.. almost very simple)