mail-archives/mono-list/2005-February/026027.html

74 строки
2.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-list] HTTPSessionState order of events?
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:ddonahue%40ccs.neu.edu">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="026026.html">
<LINK REL="Next" HREF="026028.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-list] HTTPSessionState order of events?
</H1>
<B>David P. Donahue
</B>
<A HREF="mailto:ddonahue%40ccs.neu.edu"
TITLE="[Mono-list] HTTPSessionState order of events?">ddonahue@ccs.neu.edu
</A><BR>
<I>Fri, 25 Feb 2005 09:08:08 -0500</I>
<P><UL>
<LI> Previous message: <A HREF="026026.html">[Mono-list] Not implemented method in System.Web.HttpBrowserCapabilities
</A></li>
<LI> Next message: <A HREF="026028.html">[Mono-list] newbie questions about mono-1.1.4, graphics, and Mac OS X
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#26027">[ date ]</a>
<a href="thread.html#26027">[ thread ]</a>
<a href="subject.html#26027">[ subject ]</a>
<a href="author.html#26027">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Using Mono 1.0.6, I'm noticing something I find odd when referencing
Session variables via:
if (Session[stringName] == stringValue){
...
I'm having no trouble with this in most contexts, but if I put such code
in a Page_Load for my initial page, I get an &quot;Object reference not set
to an instance of an object&quot; error.
Now, all the session variables that I use get initialized with default
values in Global's Session_Start. So, my question is, is Session_Start
not firing before the initial Page_Load? Is there something else that
might be causing this?
Regards,
David P. Donahue
<A HREF="mailto:ddonahue@ccs.neu.edu">ddonahue@ccs.neu.edu</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="026026.html">[Mono-list] Not implemented method in System.Web.HttpBrowserCapabilities
</A></li>
<LI> Next message: <A HREF="026028.html">[Mono-list] newbie questions about mono-1.1.4, graphics, and Mac OS X
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#26027">[ date ]</a>
<a href="thread.html#26027">[ thread ]</a>
<a href="subject.html#26027">[ subject ]</a>
<a href="author.html#26027">[ author ]</a>
</LI>
</UL>
</body></html>