> This is very annoying.  Suppose you have an application (as I will soon)
> where you have a Core module that supplies users, roles, etc and a
> login.  From there you would travel to other modules which would of
> course need to know that your logged in (a cookie works -
> FormsAuthentication class).  But suppose I set your Member object into
> Session within the Core module, the Foo module could not access it.  So
> in fact I would have to check your cookie and retrieve again the Member
> object associated to that cookie from the database.  Thus, an unecessary
> call to the database, and two instances of the same object sitting in
> session.  Its a data integrity nightmare!

In defense of your idea, it sounds very reasonable.  Having a site made up of
several subdirectories doesn't mean it's a bad program to use the web as a
platform.  Certainly sessions should span directories when it's the same web
app.  IIS certainly treats it that way.

I unfortunately can't help though, as I have not done any work with sessions
on Mono yet.  I have done it extensively in IIS however, and eventually would
like to try porting it to Mono.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to