FW: two "global" objects being created ?!

From: Yury Zenkevich (yury@altiris.ee)
Date: 02/19/03

  • Next message: Nicholas Paldino [.NET/C# MVP]: "Re: two "global" objects being created ?!"
    From: "Yury Zenkevich" <yury@altiris.ee>
    Date: Wed, 19 Feb 2003 14:13:22 +0200
    
    

    Any ideas, guys ?!

    How can I create object for my session to be unique for all the Globals
    being created by ASPNET ?!
    Seems like it even does creates multiple sessions (for frames ?) Damn, I
    feel myself pretty mixed...

    YZ.

    "Yury Zenkevich" <yury@altiris.ee> wrote in message
    news:#p6cYz11CHA.1752@TK2MSFTNGP10...
    > Hi All !
    >
    > I just found, that when connecting to my application, I do have two
    > different objects with class "Global" created... Constructor was called
    > twice...
    > What can it be ?!
    >
    > ps. I do keep pointer to global object in Thread.NamedDataSlot, so
    sometimes
    > these Global instances being "mixed" and application failed for many
    reasons
    > (my Global have some uitlity objects, that should not be duplicated)...
    >
    > Any ideas ?
    >
    > YZ.
    >
    >



    Relevant Pages

    • Re: [PHP] Re: header( refresh ), form data, and IE
      ... with the correct data. ... I've now decided to shove all form data into session ... globals, and just refresh with a 'load_previous' flag in the URL. ...
      (php.general)
    • Re: creating related record
      ... I suspect there's no reason to use globals for session-held values either -- just an old habit I haven't yet broken myself from. ... I find I don't have to reference session variables often but I do need them in a variety of places and it's easier to track it down from a list then to remember what I called it. ... Associate Member, FileMaker Solutions Alliance ...
      (comp.databases.filemaker)
    • Re: two "global" objects being created ?!
      ... The reason to keep the pointer to Global was the reason to have some place, ... The Session object itself does the job well, ... Any ideas on how to make the Session object accessible _between_ requests? ... >> How can I create object for my session to be unique for all the Globals ...
      (microsoft.public.dotnet.security)
    • Re: .htaccess to enable sessions
      ... > a .htaccess file to enable sessions with globals turned off. ... > without seeing the login failed page, it still takes me back to the ... Replace $GLOBALS with $_SESSION. ...
      (comp.lang.php)
    • Re: Best way to integrate classes
      ... Where did you get the idea that globals and refs would be ... different in PHP from what they are in any other language? ... the Session object, you just instanciate the DB object when you ... The language used on this project shared some, err, ...
      (comp.lang.php)