Can I share Session variables across Applications?

Discussion in 'ASP General' started by George Hester, Jun 21, 2004.

  1. In one Application (2) the client is redirected to a Logon ASP in a different Application (1). A Session Variable is made in Application 2 which needs to be recognized in Application 1. Can I do that in Windows 2000 SP3 IIS5 no .NET Framework? Thanks.

    --
    George Hester
    __________________________________
     
    George Hester, Jun 21, 2004
    #1
    1. Advertising

  2. No.

    http://www.aspfaq.com/2157

    --
    http://www.aspfaq.com/
    (Reverse address to reply.)




    "George Hester" <> wrote in message
    news:ep#...
    In one Application (2) the client is redirected to a Logon ASP in a
    different Application (1). A Session Variable is made in Application 2
    which needs to be recognized in Application 1. Can I do that in Windows
    2000 SP3 IIS5 no .NET Framework? Thanks.

    --
    George Hester
    __________________________________
     
    Aaron [SQL Server MVP], Jun 21, 2004
    #2
    1. Advertising

  3. George Hester wrote:
    > In one Application (2) the client is redirected to a Logon ASP in a
    > different Application (1). A Session Variable is made in Application
    > 2 which needs to be recognized in Application 1. Can I do that in
    > Windows 2000 SP3 IIS5 no .NET Framework? Thanks.


    Yes, if you use your own session architecture and store the contents of the
    variables in a DB.

    I have session variables that span applications and servers inside our
    domain -- including IIS4/5/6, Apache, and Tomcat servers.



    --
    Dave Anderson

    Unsolicited commercial email will be read at a cost of $500 per message. Use
    of this email address implies consent to these terms. Please do not contact
    me directly or ask me to contact you directly for assistance. If your
    question is worth asking, it's worth posting.
     
    Dave Anderson, Jun 21, 2004
    #3
  4. George Hester

    Patrice Guest

    What do you want to share ?

    By nature, session variables are intendent to store session specific
    information for a particular application. If you tell us what you try to do,
    someone could come up with a better architecture suggestion.

    Patrice

    --

    "George Hester" <> a écrit dans le message de
    news:ep%...
    In one Application (2) the client is redirected to a Logon ASP in a
    different Application (1). A Session Variable is made in Application 2
    which needs to be recognized in Application 1. Can I do that in Windows
    2000 SP3 IIS5 no .NET Framework? Thanks.

    --
    George Hester
    __________________________________
     
    Patrice, Jun 22, 2004
    #4
  5. Thanks for cart.zip. I saw after this post this was the way to go. Trouble is I am finding that different Applications are not not necessary for this issue to happen. Consider this:

    The root is a FrontPage 2000 Sever Extended web. Application 2 is also a FrontPage 2000 Server Extended Virtual Directory of Application 1. In Application 2 there is a ASP with this in it:

    <img src="/images/spacer.gif">
    <img src="/images/adobelogo.gif">

    The first fails while the second one succeeds.

    I haven't been able to track down that anomoly yet. Application 2 has an images folder so I just stuck the spacer.gif in there and left the HTML alone. That fixed it.

    I know this isn't a Session issue but the ability to "share" across Applications seems to be hazardous.

    --
    George Hester
    __________________________________
    "Aaron [SQL Server MVP]" <> wrote in message news:...
    > No.
    >
    > http://www.aspfaq.com/2157
    >
    > --
    > http://www.aspfaq.com/
    > (Reverse address to reply.)
    >
    >
    >
    >
    > "George Hester" <> wrote in message
    > news:ep#...
    > In one Application (2) the client is redirected to a Logon ASP in a
    > different Application (1). A Session Variable is made in Application 2
    > which needs to be recognized in Application 1. Can I do that in Windows
    > 2000 SP3 IIS5 no .NET Framework? Thanks.
    >
    > --
    > George Hester
    > __________________________________
    >
    >
     
    George Hester, Jun 22, 2004
    #5
  6. Yes I was hoping that. This is just a way for determing if Cookies are enabled. The accessed page (In Application 2) sends the client to a logon page (in Application 1) if they don't have a Session not necessarily made in Application 2. The logon page (ASP) is in Application 1 the root. Since I test in Application 2 the ability to make a Session (cookie) and see if it exists in the logon page, the trouble appears.

    --
    George Hester
    __________________________________
    "Patrice" <> wrote in message news:...
    > What do you want to share ?
    >
    > By nature, session variables are intendent to store session specific
    > information for a particular application. If you tell us what you try to do,
    > someone could come up with a better architecture suggestion.
    >
    > Patrice
    >
    > --
    >
    > "George Hester" <> a écrit dans le message de
    > news:ep%...
    > In one Application (2) the client is redirected to a Logon ASP in a
    > different Application (1). A Session Variable is made in Application 2
    > which needs to be recognized in Application 1. Can I do that in Windows
    > 2000 SP3 IIS5 no .NET Framework? Thanks.
    >
    > --
    > George Hester
    > __________________________________
    >
    >
     
    George Hester, Jun 22, 2004
    #6
  7. Yes, note that http://www.aspfaq.com/2157 also states that this can happen
    across defined virtual directories...

    --
    http://www.aspfaq.com/
    (Reverse address to reply.)




    "George Hester" <> wrote in message
    news:...
    Thanks for cart.zip. I saw after this post this was the way to go. Trouble
    is I am finding that different Applications are not not necessary for this
    issue to happen. Consider this:

    The root is a FrontPage 2000 Sever Extended web. Application 2 is also a
    FrontPage 2000 Server Extended Virtual Directory of Application 1. In
    Application 2 there is a ASP with this in it:

    <img src="/images/spacer.gif">
    <img src="/images/adobelogo.gif">

    The first fails while the second one succeeds.

    I haven't been able to track down that anomoly yet. Application 2 has an
    images folder so I just stuck the spacer.gif in there and left the HTML
    alone. That fixed it.

    I know this isn't a Session issue but the ability to "share" across
    Applications seems to be hazardous.

    --
    George Hester
    __________________________________
    "Aaron [SQL Server MVP]" <> wrote in message
    news:...
    > No.
    >
    > http://www.aspfaq.com/2157
    >
    > --
    > http://www.aspfaq.com/
    > (Reverse address to reply.)
    >
    >
    >
    >
    > "George Hester" <> wrote in message
    > news:ep#...
    > In one Application (2) the client is redirected to a Logon ASP in a
    > different Application (1). A Session Variable is made in Application 2
    > which needs to be recognized in Application 1. Can I do that in Windows
    > 2000 SP3 IIS5 no .NET Framework? Thanks.
    >
    > --
    > George Hester
    > __________________________________
    >
    >
     
    Aaron [SQL Server MVP], Jun 22, 2004
    #7
  8. George Hester

    Patrice Guest

    Why do you use two applications ? I would just test this by using two pages
    into the same application ???

    Patrice

    --

    "George Hester" <> a écrit dans le message de
    news:...
    Yes I was hoping that. This is just a way for determing if Cookies are
    enabled. The accessed page (In Application 2) sends the client to a logon
    page (in Application 1) if they don't have a Session not necessarily made in
    Application 2. The logon page (ASP) is in Application 1 the root. Since I
    test in Application 2 the ability to make a Session (cookie) and see if it
    exists in the logon page, the trouble appears.

    --
    George Hester
    __________________________________
    "Patrice" <> wrote in message
    news:...
    > What do you want to share ?
    >
    > By nature, session variables are intendent to store session specific
    > information for a particular application. If you tell us what you try to

    do,
    > someone could come up with a better architecture suggestion.
    >
    > Patrice
    >
    > --
    >
    > "George Hester" <> a écrit dans le message de
    > news:ep%...
    > In one Application (2) the client is redirected to a Logon ASP in a
    > different Application (1). A Session Variable is made in Application 2
    > which needs to be recognized in Application 1. Can I do that in Windows
    > 2000 SP3 IIS5 no .NET Framework? Thanks.
    >
    > --
    > George Hester
    > __________________________________
    >
    >
     
    Patrice, Jun 23, 2004
    #8
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Cowboy \(Gregory A. Beamer\)

    Sharing Session variables across applications

    Cowboy \(Gregory A. Beamer\), Dec 18, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    6,342
    Alvin Bruney
    Dec 19, 2003
  2. mg
    Replies:
    1
    Views:
    471
    Hermit Dave
    Dec 18, 2003
  3. Jon Paugh

    share aspx across web applications

    Jon Paugh, Jan 20, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    476
    Chris Jackson
    Jan 20, 2004
  4. Chad A. Beckner

    Share User Control Across Applications - How?

    Chad A. Beckner, Jun 7, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    621
    John Saunders
    Jun 7, 2004
  5. Saraswati lakki
    Replies:
    0
    Views:
    1,350
    Saraswati lakki
    Jan 6, 2012
Loading...

Share This Page