Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
joshott #1
Member since Apr 2008 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: AGSXMPP & VS 2008 ASP.Net+
I just wanted to touch base with everyone to ensure my methods are the best scenario.

I have a web application using the .Net 3.5 Framework and the built in update panels etc.

My application connects to a AGSXMPP server which uses the custom packet stuff. (on_message) events.

i have a method which will connect to the server and create a conversation (all custom stuff).
When the on_message is triggered back on the client (asp.net) side,  I can not access Session[""].
So I had to revert to Cache[""].  

Is this the only way?  I know that the on_message is an async call and is handled behind the scenes so that the Page.Session etc are not accessible.
I spent hours trying to figure out a way but gave up and reverted to the cache system.
Avatar
Alex #2
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
all the events trigger on the server, not on the client.

You can write all the events to a queue and process them with the next page refresh, or you can extend AJAX to the idea which is described in the BOSH [1] extensions and forward all events to your page in realtime.

Alex

[1] BOSH http://www.xmpp.org/extensions/xep-0124.html
Avatar
joshott #3
Member since Apr 2008 · 2 posts
Group memberships: Members
Show profile · Link to this post
yeah meant server. :)

When u talk about queue, thats kinda what i do with the cache,  but it doesnt work completely as i want it to.
When you reference a "queue"  I am guessing you are talking about what I am doing in a sense?
Avatar
Alex #4
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
With Queue I mean some kind of collection, hastable or stack where you store all events until the client reloads the page and can access/process them.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS