[Mono-devel-list] XSP: Problem with the Session in global.asax

Alexandre Anfray aanfray at perinfo.com
Fri Jan 21 09:30:54 EST 2005


Hello,

I need to access the Session in Session_end function of the Global.asax' 
file.
I'm testing with different browsers (FireFox, Mozilla, IE) to create several
different Sessions.

On Cassini, it works everytime.
On XSP Server, it doesn't work well. In fact, I have 3 cases:
1./ it works (very seldom)
2./ it mixes all Sessions Objects in one
3./ it fails: "Failed to get session object"


*here's my code of global.asax file:*

 void Session_Start(Object sender, EventArgs E) {
        System.Console.Out.WriteLine("La session demarre 
("+DateTime.Now.ToString("T")+") ID="+Session.SessionID);
 }

void Session_End(Object sender, EventArgs E) {
        try {
                System.Console.Out.WriteLine("La session termine 
("+DateTime.Now.ToString("T")+") ID="+Session.SessionID);
        }
        catch(Exception exc) {
                System.Console.Out.WriteLine("Erreur:"+exc.Message);
        }
}

*and the results*

case 1:
La session demarre (14:31:09) ID=06BB295D39FABBF6C8B012E1620CDF
La session demarre (14:31:11) ID=C827A62EF2C504B00BE05F967BDCA9
La session termine (14:33:16) ID=06BB295D39FABBF6C8B012E1620CDF
La session termine (14:33:18) ID=C827A62EF2C504B00BE05F967BDCA9

case 2:
La session demarre (14:31:09) ID=06BB295D39FABBF6C8B012E1620CDF
La session demarre (14:31:11) ID=C827A62EF2C504B00BE05F967BDCA9
La session termine (14:33:16) ID=06BB295D39FABBF6C8B012E1620CDF
La session termine (14:33:16) ID=06BB295D39FABBF6C8B012E1620CDF

case 3:
La session demarre (14:31:09) ID=06BB295D39FABBF6C8B012E1620CDF
La session demarre (14:31:11) ID=C827A62EF2C504B00BE05F967BDCA9
Erreur:Failed to get session object
Erreur:Failed to get session object

Mono version: Mono JIT compiler version 1.0.5
I tried 2 version of XSP: xsp.exe 1.0.1.0 and xsp.exe 1.0.5.0 with same 
results.

If someone see what's wrong, please let me know
Thanks

A.Anfray




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050121/0cfc42e5/attachment.html 


More information about the Mono-devel-list mailing list